[docs] cannot set default encoding in python3.3.3

gby gby_sdu at 163.com
Sun Feb 16 14:19:05 CET 2014


Dear sir:
    In python 2.7,we can set the default encoding by:
   
    import sys
    reload(sys)
    sys.setdefaultencoding('gbk')
 
    But in python3.3, the default encoding is 'utf-8' and I can't set it 'gbk' ! The "sys.setdefaultencoding()" function is disappeared !
    I am really worried,I have tried several days but I can't solve it ! Please help me and show me how to set the default encoding in python 3.3, please!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20140216/b9935df0/attachment.html>


More information about the docs mailing list