[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.

2015-12-26 Thread
王杰 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> ___ __

[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.

2015-12-26 Thread
王杰 added the comment: Python 2.7 -- ___ Python tracker <http://bugs.python.org/issue25937> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.

2015-12-23 Thread
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