[I18n-sig] Re: Strawman Proposal: Encoding Declaration V2
Fredrik Lundh
fredrik@effbot.org
Sun, 11 Feb 2001 12:34:12 +0100
> A source file with an encoding declaration must only use non-ASCII bytes
> in places that can legally support Unicode characters. In Python 2.x the
> only place is within a Unicode literal
make that "in a string literal".
if an encoding directive is present, the *entire* file should be
assumed to use that encoding. this applies to comments, 8-bit
string literals, and 16-bit string literals.
Cheers /F