|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: unicode DWIM?by dakkar (Hermit) |
| on Feb 24, 2005 at 13:29 UTC ( #434058=note: print w/ replies, xml ) | Need Help?? |
|
I'm not sure get_layers is the best way to get the name of the locale's encoding, but assuming it is, this works: (Perl 5.8.2 linux)
It decodes (in place) each command-line argument from the locale's encoding, then prints them alongside their length. This helps in understanding what kind of strings Perl thinks it is working with. --
dakkar - Mobilis in mobile
Most of my code is tested...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||