Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Open
Description
Bug report
The following Python code throws aUnicodeEncodeError
:
b'\xdc\xff'.decode('UTF-16BE','surrogateescape').encode('UTF-16','surrogateescape')
I would expect that it would returnb'\xdc\xff'
instead.
Your environment
- CPython versions tested on: 3.10.4 from Fedora 35 repository
- Operating system and architecture: Fedora 35 on x86-64
Metadata
Metadata
Assignees
Projects
Status
No status