[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread Eryk Sun
Eryk Sun added the comment: > windows version run success! Trying to decode a non-ASCII unicode string should raise an exception on any platform: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or

[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread STINNER Victor
STINNER Victor added the comment: Decoding Unicode doesn't make any sense. You should take a look at http://unicodebook.readthedocs.io/ to understand what you are doing :-) (On Python 3, Unicode strings, the str type, has no mode .decode() type.) I suggest to close the issue has NOT A BUG.

[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread webber
Changes by webber : Added file: http://bugs.python.org/file46767/windows.jpg ___ Python tracker ___ ___

[issue29945] decode string:u"\ufffd" UnicodeEncodeError

2017-03-30 Thread webber
New submission from webber: I use python on linux, version is 2.7.13: [root@localhost bin]# ./python2.7 Python 2.7.13 (default, Mar 30 2017, 00:54:08) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> a=u"\ufffd" >>>