NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
My advice… (Score:2)
Always use UTF-8 if you possibly can. It's (more-or-less) a superset of everything else, and it's properly detectable.
If you're looking for interesting encodings, I'd recommend checking out one of the Shift-JIS [wikipedia.org] things. Just for weirdness. Personally, I've little experience of non-western encodings.
For more concrete use cases to cover with encoding, you should look at:
Re: (Score:2)
Can you tell me more about the command line and environment variable problem? I think I'll have the other ones covered, but I'd like to know how you solved that one. I don't recall reading anything about how Perl will treat those.
Re:My advice… (Score:2)
Actually, my problem was with Java, but the same principle applies. :)
I've just noticed that this doesn't work for environment variables. That's a shame.
This is all on perl 5.8.8, BTW. It may be fixed in later versions.
Reply to This
Parent