in reply to
Re^2: Confusing UTF-8 bug in CGI-script
in thread Confusing UTF-8 bug in CGI-script
# Wrong, and the cause of the OP's problem. See my reply to the OP.
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.
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 (?)