Message314443
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 |
|
Date |
User |
Action |
Args |
2018-03-26 09:26:20 | anders.rundgren.net@gmail.com | set | recipients:
+ anders.rundgren.net@gmail.com, vstinner, ezio.melotti |
2018-03-26 09:26:20 | anders.rundgren.net@gmail.com | set | messageid: <1522056380.43.0.467229070634.issue33143@psf.upfronthosting.co.za> |
2018-03-26 09:26:20 | anders.rundgren.net@gmail.com | link | issue33143 messages |
2018-03-26 09:26:20 | anders.rundgren.net@gmail.com | create | |
|