Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: UTF-8 problems again

by tangent (Parson)
on Feb 03, 2019 at 01:25 UTC ( [id://1229308]=note: print w/replies, xml ) Need Help??


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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1229308]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-26 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found