[Python-Dev] PEP 263 -- Python Source Code Encoding (original) (raw)

Skip Montanaro skip@pobox.com
Wed, 27 Feb 2002 12:30:55 -0600


>> Perhaps a warning should be emitted by the compiler if a plain string
>> literal is found that contains 8-bit characters.  Better yet, perhaps
>> Neal can add this to PyChecker if he hasn't already...

mal> See the PEP: this is what phase 1 will do; phase 2 won't accept
mal> such a file without an explicit encoding declaration.

That wasn't what I was getting at. The quoted part of the reference manual seemed to suggest that programmers should be using hex escapes in string literals instead of 8-bit characters. This doesn't seem to me to be related to what encoding the file is in.

Skip