setdefaultencoding error

smalltalk ttkk1024 at gmail.com
Sat Dec 8 04:36:40 EST 2007


>>> import sys
>>> sys.setdefaultencoding(utf8)
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
AttributeError: 'module' object has no attribute 'setdefaultencoding'

but i find the attribute"setdefaultencoding" in python manuals

where is the error?



More information about the Python-list mailing list