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 steven.daprano
Recipients russiavk, steven.daprano
Date 2021-08-12.10:26:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1628764009.07.0.694858354241.issue44898@roundup.psfhosted.org>
In-reply-to
Content
How did you enter the Chinese characters?

It works for me:

>>> filename = 'Beijing 北京市'
>>> with open(filename, 'w') as f:
...     f.write('data')
... 
4
>>> from pathlib import Path
>>> p = Path(filename)
>>> p.read_bytes()
b'data'


Please provide a *minimal reproducible example*

https://stackoverflow.com/help/minimal-reproducible-example

http://www.sscce.org/
History
Date User Action Args
2021-08-12 10:26:49steven.dapranosetrecipients: + steven.daprano, russiavk
2021-08-12 10:26:49steven.dapranosetmessageid: <1628764009.07.0.694858354241.issue44898@roundup.psfhosted.org>
2021-08-12 10:26:49steven.dapranolinkissue44898 messages
2021-08-12 10:26:48steven.dapranocreate