[Tutor] encoding

kakada hokkakada at khmeros.info
Wed Apr 12 03:51:03 CEST 2006

Hi all,

Does anybody know how to decode to Windows Latin ("ANSI")
I know how to decode to utf-8:
stringinput = stringinput.decode('utf-8')
but while I use
stringinput = stringinput.decode('ANSI')
LookupError: unknown encoding: ANSI

so what is the correct way to do it?

Thanks and !Happy Khmer New Year!


More information about the Tutor mailing list