PEP 540 / 587 UTF-8

17 views
Skip to first unread message

Mark Zieg

unread,
Dec 8, 2020, 4:46:23 AM12/8/20
to PyInstaller
Hello,

Apologies if this is a FAQ, but I've searched around and been unable to find a clear answer.  

With PEP 540, Python added a "-x utf8" option to the Python interpreter, and a PYTHONUTF8 environment variable shortcut to the same functionality.  PEP 587 went a step further and added the PyPreConfig framework for configuring Python settings.  Is there a way to enable Python 3.7+'s "UTF8" mode (forcing UTF8 to be the default for all streams) on a frozen Windows Pyinstaller-generated executable?

Regards,

Mark Zieg


      

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Notify sender immediately by e-mail if you have received this by mistake, and delete from your system. Disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.  We carefully protect your personal data in accordance with updated GDPR requirements. Read our full privacy statement at wasatchphotonics.com/privacy-statement.  
Reply all
Reply to author
Forward
0 new messages