[Python-3000] Draft PEP: Using UTF-8 as the default source encoding (original) (raw)

Georg Brandl g.brandl at gmx.net
Sun Apr 15 18:53:25 CEST 2007


Martin v. Löwis schrieb:

I'd like to submit the following PEP for Python 3.

Regards, Martin

PEP: xxx Title: Using UTF-8 as the default source encoding Version: RevisionRevision Revision Last-Modified: DateDate Date Author: Martin v. Löwis <martin at v.loewis.de> Status: Draft Type: Standards Track Content-Type: text/x-rst Created: 15-Apr-2007 Python-Version: 3.0 Post-History: Specification ============= This PEP proposes to change the default source encoding from ASCII to UTF-8. Support for alternative source encodings [#pep263] continues to exist; an explicit encoding declaration takes precedence over the default.

+1 in general. Do you want to add a sentence or two about the infamous UTF-8 "BOM"?

Georg

-- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-3000 mailing list