Re: utf8 horror stories
John Williams <[email protected]>
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 17 Sep 2004, Autrijus Tang wrote: > On Thu, Sep 16, 2004 at 12:52:19PM -0600, John Williams wrote: > > Perl desperately needs a "default-to-utf8" mode. > > It's called "use encoding 'utf8';". It's also subtly enabling > lots of other knobs. See encoding::warnings on CPAN for details. Have you actually tried it? That only sets your source file and STDIN/STDOUT to utf8. "use open ':utf8'" will fix your other files, but only lexically, so other modules you use will still give you non-utf8 strings. LWP::UserAgent doesn't pay attention to the charset header. libapreq2 doesn't mark the strings it gives you as utf-8. And let's not even get started on DBI... ~ John Williams P.S. I should give kudos to Storable for doing the right thing, though. ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php