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);
In reply to Re: UTF-8 problems again
by tangent
in thread UTF-8 problems again
by kepler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |