in reply to Unicode at Windows' cmd.exe
I, personally (as a Brasilian that has pt_BR as native language), start all my scripts with:use utf8;
This makes my I/O to be done in cp1252 in Windows, and in Latin1 or UTF-8 in linux. I edit my scripts in vim with UTF-8 encoding in both platforms.use strict; use warnings; use utf8; # I will write this script in UTF-8 use open qw(:std :locale); # All files to be open in the native cp use locale; # I want my string comparisons according to native locale
anduse open qw(:std :locale);
do the same thing.use open qw(:locale);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unicode at Windows' cmd.exe
by Burak (Chaplain) on Jul 14, 2008 at 13:02 UTC | |
by massa (Hermit) on Jul 15, 2008 at 00:18 UTC | |
by Burak (Chaplain) on Jul 15, 2008 at 08:27 UTC |