[Python-Dev] Support of UTF-16 and UTF-32 source encodings

Glenn Linderman v+python at g.nevcal.com
Sat Nov 14 20:24:05 EST 2015


On 11/14/2015 5:15 PM, Chris Angelico wrote:
> Can the py.exe launcher handle a UTF-16 shebang? (I'm pretty sure Unix
> program loaders won't.) That alone might be a reason for strongly
> encouraging ASCII-compat encodings.

That raises an interesting question about if py.exe can handle a leading 
UTF-8 BOM.  I have my emacs-on-Windows configured to store UTF-8 without 
BOM, but Notepad would put a BOM when saving UTF-8, last I checked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151114/85e557ae/attachment.html>


More information about the Python-Dev mailing list