mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix escaping of non-ASCII characters.
This commit is contained in:
parent
8a64d40949
commit
2412853f8e
2 changed files with 5 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
#! -*- coding: koi8-r -*-
|
||||
assert u"ðÉÔÏÎ".encode("utf-8") == '\xd0\x9f\xd0\xb8\xd1\x82\xd0\xbe\xd0\xbd'
|
||||
assert u"\ð".encode("utf-8") == '\\\xd0\x9f'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue