Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Encode string to HTML

by sundialsvc4 (Monsignor)
on Nov 01, 2013 at 15:03 UTC ( #1060774=note: print w/ replies, xml ) Need Help??


in reply to Encode string to HTML

In addition, also be sure that when you send the HTML to the browser, you tell the browser what character-set (language ...) is the proper one to use for this content.   e.g. http://stackoverflow.com/questions/6157485/content-language-and-accept-language.   Browsers are reasonably-smart about such things these days, except when they are stupid.


Comment on Re: Encode string to HTML
Re^2: Encode string to HTML
by gepebril69 (Beadle) on Nov 01, 2013 at 16:17 UTC

    Thanks!

    I had to change this line of code to make my mail look OK on the webbrowsers I've tested

    $Mail{'content-type'} = 'text/html; charset="iso-8859-1"'; #Old, no +t correct $Mail{'content-type'} = 'text/html; charset="utf-8"';

    Thanks all for aiming me to the right direction

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-07-28 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (204 votes), past polls