This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author anders.rundgren.net@gmail.com
Recipients anders.rundgren.net@gmail.com, ezio.melotti, vstinner
Date 2018-03-26.09:26:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522056380.43.0.467229070634.issue33143@psf.upfronthosting.co.za>
In-reply-to
Content
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')
b'\xff\xfe\xac '
>>> v.encode('utf-16_be')
b' \xac'

I had expected to get pair of bytes with 20 AC for the € symbol
History
Date User Action Args
2018-03-26 09:26:20anders.rundgren.net@gmail.comsetrecipients: + anders.rundgren.net@gmail.com, vstinner, ezio.melotti
2018-03-26 09:26:20anders.rundgren.net@gmail.comsetmessageid: <1522056380.43.0.467229070634.issue33143@psf.upfronthosting.co.za>
2018-03-26 09:26:20anders.rundgren.net@gmail.comlinkissue33143 messages
2018-03-26 09:26:20anders.rundgren.net@gmail.comcreate