# Wrong, and the cause of the OP's problem. See my reply to the OP. binmode(STDIN, ':encoding(UTF-8)');
That's what I would've thought, too, but interestingly, it doesn't do any harm in practice (I did try it), and
# Necessary to encode the returned HTML. binmode(STDOUT, ':encoding(UTF-8)');
only seems to be required with newer versions of CGI.pm (as I mentioned). Older versions apparently did the encoding themselves before printing to STDOUT (?)
In reply to Re^3: Confusing UTF-8 bug in CGI-script
by Anonyrnous Monk
in thread Confusing UTF-8 bug in CGI-script
by wanradt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |