http://qs321.pair.com?node_id=1229308


in reply to UTF-8 problems again

How can I decode/code the text in Perl in order to correctly appear in an html page?
I often find it is enough to use the HTML::Entities module which will encode your text for display in a HTML page:
use HTML::Entities; # decode the text first in case some of it is already encoded decode_entities($text); # encode the text encode_entities($text);