At 10:39 pm +0000 2/3/05, David Cantrell wrote:If you put non-ASCII in your code you're doing something wrong. Language-specific stuff - including English - belongs in a seperate resource file if you care about internationalisation.Uhm, the Perl I use uses UTF-8 by default. UTF-8 and Unicode have nothing at all to do with language, whatever you mean by that;
Fair point - I don't believe any language uses the SNOWMAN character that some moron thought should exist in a character set.
> and if
I'm using a text editor that allows me to include Chinese and Ancient Greek in a perl script, as I do, and have them displayed as such for my convenience I am doing nothing wrong at all, since the script is all in UTF-8. I think you are talking of a different century.
If it's for your convenience, that's fine. If you want to contribute your code to someone elses project, or you want others to work with you on your project, then insisting that everyone else use your choice of encoding, which may not render at all on their hardware even if they were to jump through the appropriate settings hoops, is just plain rude. You also open yourself up to confusion between o and Î - on which subject, see recent security advisories.
-- David Cantrell | Reality Engineer, Ministry of Information
emacs: for a brave GNU Word -- cdevers, in #london.pm