Re: utf8 horror stories
Autrijus Tang <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Sep 16, 2004 at 03:13:08PM -0600, John Williams wrote:
> I tried changing it to this:
>
> use encoding 'utf8';
> ${ $self->{buffer} } .= $_ foreach grep { defined } @_;
>
> But all the doubly-encoded utf8 strings came back, indicating that it is
> still doing the latin1->utf8 conversion on the strings which are "off".
>
> I'm using perl-5.8.3, encoding-1.48, mod_perl-1.99_12. Do I need to
> upgrade something?
Hmm. Try specifying "use encoding 'utf8'" before loading the rest of Mason
Modules, perhaps? Also consider using encoding::warnings first (without
"use encoding 'utf8'") to find out where did the conversion really occur.
Thanks,
/Autrijus/
signature.asc
(application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFBSiKItLPdNzw1AaARAshQAKCnmt5T9SCnlgIg5C7Bi23/fV23oACgsKl+ EzlRb7kpEcQZcQkFaw52qkM= =hBLe -----END PGP SIGNATURE-----