Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: HTML entities converted to Non-Latin-1 format...

by clinton (Priest)
on Apr 20, 2008 at 20:52 UTC ( #681831=note: print w/ replies, xml ) Need Help??


in reply to Re^2: HTML entities converted to Non-Latin-1 format...
in thread HTML entities converted to Non-Latin-1 format...

You don't specify what the destination non-unicode-aware program is and how this data is going to be used, but if you don't want to lose information, you could signal encode to replace those characters with HTML or XML character references (&#NNN; or \x{HHHH}.

$latin1 = encode('iso-8859-1',$original,Encode::FB_HTMLCREF); OR $latin1 = encode('iso-8859-1',$original,Encode::FB_XMLCREF);


Comment on Re^3: HTML entities converted to Non-Latin-1 format...
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2014-07-30 21:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (240 votes), past polls