On 11/14/2015 3:21 PM, Serhiy Storchaka wrote:
On 15.11.15 00:56, Victor Stinner wrote:
These encodings are rarely used. I don't think that any text editor use
them. Editors use ascii, latin1, utf8 and... all locale encoding. But I
don't know any OS using UTF-16 as a locale encoding. UTF-32 wastes disk
space.

AFAIK the standard Windows editor Notepad uses UTF-16. And I often encountered Windows resource files in UTF-16. UTF-16 was more popular than UTF-8 on Windows some time. If this horse is dead I'll throw it away.

Just use UTF-8, ignoring an optional leading BOM. If someone wants to use something else, they can write a "preprocessor" to convert it to UTF-8 for use by Python.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to