in reply to Encoding is a pain.
One can always use explicit io layers on filehandles like
instead of a use encoding. As far as I see, the real use of use encoding is when you want to embed encoded characters in the script itself, not when you want the script to handle encoded input or output.binmode STDIN, ":encoding(iso-8859-2)";
I am, however, not really familiar with encodings, so I'm not sure.
|
|---|