> If i call locale.py i get this output: > -------- > Language: de_DE > Encoding: cp1252 > --------
I've just looked at the base Python code in 1.5.2 for locale.py so far, which has a short list of supported charset names (note that they are *not* MIME charset names). I'm not sure where cp1252 comes from. Ahh, found it. It comes from a call to GetACP(). Nice of them not to use anyone else's charset encodings... I've added the 9 Windows charsets into NamedCharsets, in both the IANA "windows-*" form and the Python "cp*" form. > i get: > > ------- > Converted plucker:/home.html > Default charset is 1252 > 1252 > 0 > Converted plucker:/~special~/index > ------ > > and 04E4 (1252) are written in the plucker DBs metadata record. But > the http://www.iana.org/assignments/character-sets say: I've tried to duplicate this, but just get an error saying that 'cp1252' doesn't name a charset. > And at the end one idea: Whats about writing a parser that parse the > http://www.iana.org/assignments/character-sets and create and complete > NamedCharsets array? It seams to be easy and i think i could do this. Great idea! Bill
