[issue33143] encode UTF-16 generates unexpected results

2018-03-26 Thread Anders Rundgren
Anders Rundgren added the comment: Thanx for the superquick response! I really appreciate it. I'm obviously a Python n00b Anders -- ___ Python tracker

[issue33143] encode UTF-16 generates unexpected results

2018-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: b'\x20' is the same as b' '. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33143] encode UTF-16 generates unexpected results

2018-03-26 Thread Anders Rundgren
New submission from Anders Rundgren : Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> v = '\u20ac' >>> print (v) € >>> v.encode('utf-16')