in reply to Encoding is a pain.

One can always use explicit io layers on filehandles like

binmode STDIN, ":encoding(iso-8859-2)";
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.

I am, however, not really familiar with encodings, so I'm not sure.