On Wednesday 10 July 2002 16:16, Tom Howe wrote:
> We use this ...
>
> sub convert {
> my $string = shift;
> my $map = Apache::AxKit::CharsetConv->new('ISO-8859-1', 'UTF-8');
> return $map->convert( $string );
> }
If you're always converting the same encodings you could gain some time by
making that $map a global, that's generally what I do.
If you're in XSP you can also use AxKit::XSP::CharsetConv. By default it
converts from latin1 to utf-8.
--
Robin Berjon <[EMAIL PROTECTED]> -- for hire: http://robin.berjon.com/
You can tune a piano, but you can't tuna fish.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]