set python default encoding

2009-04-06 Thread R. David Murray
reetesh nigam wrote: > Hi All, > I am unable to set the python default encoding. > i used the following proccess to set the python encoding > > import sys > reload(sys) > sys.setdefaultencoding('latin-1') > > but it is giving me the same error : > > args = ('utf8', "MEDICINE '\xc4 ", 10,

set python default encoding

2009-04-06 Thread reetesh nigam
Hi All, I am unable to set the python default encoding. i used the following proccess to set the python encoding import sys reload(sys) sys.setdefaultencoding('latin-1') but it is giving me the same error : args = ('utf8', "MEDICINE '\xc4 ", 10, 12, 'invalid data', >) encoding = 'utf