in reply to use encoding 'utf8' and AutoLoader

I've never used "encoding" myself, but you are not the first person I've come across here that has problems with encoding/utf8.

I would recommend switching from "use encoding 'utf8'" to "use utf8;". *) since it's

a) lexically scoped (instead of script-scoped) which makes a lot more sense. *)

b) doesn't appear to have some of the bugs that encoding has that I've seen on this site.

*) update: this means that you must use utf8; in all source files that are utf-8 encoded, which may be annoying. Perl core- and CPAN modules are usually 7-bit ASCII (or if they're utf-8 encoded they should use utf8), so it should only affect your own modules.

Replies are listed 'Best First'.
Re^2: use encoding 'utf8' and AutoLoader
by tinita (Parson) on Oct 03, 2007 at 18:13 UTC
    thanks, i'll try to switch to use utf8. good thing is, the whole app i'm working on is being refactored, so it will be tested anyway.
    still, i wonder which module causes the bug here.