Although this thread is quite old now, I would like to share my humble insights here...
When I'm dealing with different encodings, I get the best results when I decode all inputs and encode all outputs.
Text constants in the script also count as input and have to be decoded too.
If the perl script is stored in e.g. cp850, then it's worth it to write
my $text = decode("cp850","Text mit Umlauten äöüß ÄÖÜ");You can omit the decode(..) if you text only contains standard ASCII characters.
( Maybe it is wise to decode even then to have all flags set correctly. )
In reply to Re^2: Outputting Unicode to DOS
by Carbonblack
in thread Outputting Unicode to DOS
by thekestrel
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |