[Tutor] encoding

Hugo González Monteverde hugonz-lists at h-lab.net
Wed Apr 12 16:57:13 CEST 2006


kakada wrote:
 > LookupError: unknown encoding: ANSI
 >
 > so what is the correct way to do it?
 >

stringinput.encode('latin_1')

works for me.

Do a Google search for Python encodings, and you will find what the 
right names for the encodings are.

http://docs.python.org/lib/standard-encodings.html

Hugo



More information about the Tutor mailing list