Re: HTML::Entities and WinLatin1 NCRs [PATCH]

David Wheeler <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Mar 7, 2006, at 05:04, Gisle Aas wrote:

> Looking at CPAN I found http://search.cpan.org/dist/Encode-ZapCP1252/
> which looks like a good home for this.  The current version of
> Encode-ZapCP1252 only translate to ASCII approximations.  David, would
> you consider extending this module with the function above for
> supporting Chris's use case?

If I understand correctly, the code you have converts the CP1252  
gremlins into UTF-8 equivalences? I wasn't aware that there were any.  
According the research I did when I was writing that module:

   http://en.wikipedia.org/wiki/Windows-1252

You can see that there are gaps in conversion to Unicode. Am I  
mistaken? Or are there approximations that make sense?

All of the characters in question are control characters (rarely  
used) in all character sets except CP1252 (and other CPs?), which is  
why Encode doesn't convert them. But it's been a while since I looked  
into this, so I'm not clear on the details anymore.

Best,

David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.