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 );
> }

Note that with AxKit CVS (the to-become 1.6.1), there is the handy 
"AxExternalEncoding" directive. It allows you to specify one encoding which 
is used externally (file system, URL's). It can be used from within user 
modules as well, and is very easy to use - as long as one encoding is enough 
(which usually is):

AxKit::ToUTF8($string) and AxKit::FromUTF8($string) do the conversion from and 
to the charset specified with AxExternalEncoding.

Testers happily welcome, this code is rather new.

-- 
CU
        Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to