REQ : encoding windows cp1252 => iso latin 1

John J. Lee jjl at pobox.com
Tue Feb 5 20:09:47 CET 2002


On Tue, 5 Feb 2002, Gillou wrote:
[...]
> My XML parser (pyexpat) does not accept cp1252 character, and I'm looking
> for a function that can translate extra cp1252 characters to the closest ISO
> latin 1 encoding.

I realise this is overkill, but:

There is a simple Python wrapper of recode which I have a setup.py for and
which compiles on win32 with mingw... but though it seems quite stable on
unix, it crashes on windows, and I haven't got debugging working yet on my
machine.

So, if you feel like fixing it, you're welcome to it.


John




More information about the Python-list mailing list