[I18n-sig] Strawman Proposal (2): Encoding attributes

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri, 9 Feb 2001 23:13:36 +0100

> If we would just allow ASCII-supersets as source file encoding,
> then we wouldn't have to make that restriction, since only the
> Unicode literal handling in the parser would have to be adjusted
> (and this is easy to do).

That would work, I'm not feeling to strongly either way.

> This would make UTF-16 encodings impossible, but I think that
> two-byte encodings not the right approach to maintainable programs
> anyways ;-)

I certainly agree. I think Python should assume UTF-8 for Unicode
strings in the long run unless declared otherwise, as that seems to be
the winning encoding - unless MS can talk everybody into putting a BOM
into every file.