2008/3/13, Jenda Krynicky <[EMAIL PROTECTED]>: > > From: "obdulio santana" <[EMAIL PROTECTED]> > > 2008/3/12, Jenda Krynicky <[EMAIL PROTECTED]>: > > > > .....
..... I see. Sorry. Properly set is not enough when it comes to Windows. MS > Windblows uses two encodings. For reasons I would love to have a word > about with the culpables (whips and other toys at hand) Windblows > uses one encoding (1252 for western europe&americas, 1250 for central > europe) in the windowed stuff and another (437 or 852 (I think)) for > the Command Prompt. So if you print without changes any characters > that are on different places between the two encodings of your system > (see > HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\NLS\\CodePage, > the ACP and OEMCP values) you get nonsense. > > #!perl > use Encode; > > binmode(STDOUT, 'encoding(cp437)'); > print qq{algodón}; > __END__ > > seems to work. > > perl -e "use Encode; binmode(STDOUT, 'encoding(cp437)');print > qq{algodón}" > > as well. > Jenda your solution with cp437 work fine thanks a lot. Thanks everyone.