Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: UTF-8 problems again

by tangent (Vicar)
on Feb 03, 2019 at 01:25 UTC ( #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? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2022-01-21 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (57 votes). Check out past polls.

    Notices?