andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:
The question is how to e.g. handle my list of favorite Icelandic volcanoes[1]:
This will typicially printuse strict; use warnings; print "Eyjafjallaj\x{f6}kull"; print "\x{de}\x{f3}r\x{f3}lfsfell"; print "\x{d6}r\x{e6}faj\x{f5}kull"; __END__
Eyjafjallaj�kull
��r�lfsfell
�r�faj�kull
Adding
makes the non ascii characters display as I expect, but I guess I could also have used locale settings.use open qw/:std :utf8/;
What do you think is the best strategy for handling non ASCII characters?
[1] Chosen entirely for their non-ascii-ness.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: DWIM with non ASCII characters
by moritz (Cardinal) on May 07, 2010 at 07:17 UTC | |
by Hue-Bond (Priest) on May 07, 2010 at 07:40 UTC | |
by moritz (Cardinal) on May 07, 2010 at 07:58 UTC | |
by ikegami (Patriarch) on May 07, 2010 at 07:48 UTC | |
by Hue-Bond (Priest) on May 07, 2010 at 08:23 UTC | |
by almut (Canon) on May 07, 2010 at 15:10 UTC | |
| |
by ikegami (Patriarch) on May 07, 2010 at 16:09 UTC | |
Re: DWIM with non ASCII characters
by cdarke (Prior) on May 07, 2010 at 07:13 UTC |