http://qs321.pair.com?node_id=681831


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