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 eryksun
Recipients eryksun, ezio.melotti, rushant, terry.reedy, vstinner
Date 2021-03-27.00:06:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616803603.94.0.0904383954861.issue43576@roundup.psfhosted.org>
In-reply-to
Content
> If you are lost with locale encodings, you can attempt to encode
> everything in UTF-8 and enables the Python UTF-8 Mode:

rushant is using Python 3.6. UTF-8 mode was added in 3.7, so it's not an option without first upgrading to 3.7. Also, it's important to note that the suggestion to "attempt to encode everything in UTF-8" includes whatever terminal encoding or shell-script file encoding is used for `export a="中文"`. If it's not using UTF-8, then setting the preferred encoding in Python to UTF-8 isn't going to help.
History
Date User Action Args
2021-03-27 00:06:43eryksunsetrecipients: + eryksun, terry.reedy, vstinner, ezio.melotti, rushant
2021-03-27 00:06:43eryksunsetmessageid: <1616803603.94.0.0904383954861.issue43576@roundup.psfhosted.org>
2021-03-27 00:06:43eryksunlinkissue43576 messages
2021-03-27 00:06:43eryksuncreate