王杰 added the comment:
I'm learning about Python's encoding rule and I write it as a test case.
--
___
Python tracker
<http://bugs.python.org/issue25937>
___
__
王杰 added the comment:
Python 2.7
--
___
Python tracker
<http://bugs.python.org/issue25937>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
New submission from 王杰:
I use CentOS 7.0 and change LANG=gbk.
I has a file "gbk-utf-8.py" and it's encoding is GBK.
# -*- coding:utf-8 -*-
import chardet
if __name__ == '__main__':
s = '中文'
print s, chardet.detect(s)
I execute it and everything i