[Python-Dev] Re: PEP: Defining Unicode Literal Encodings

Fredrik Lundh fredrik@pythonware.com
Fri, 13 Jul 2001 22:30:45 +0200


paul wrote:    

> I think that there should be a single directive for:
>
> * unicode strings
> * 8-bit strings
> * comments

I'd say "the entire program".

> If a user uses UTF-8 for 8-bit strings and Shift-JIS for Unicode, there
> is basically no text editor in the world that is going to do the right
> thing. And it isn't possible for a web server to properly associate an
> encoding. In general, it isn't a useful configuration.

exactly.

any proposal that assumes that different parts of a text file is
going to use different encodings is seriously flawed, and totally
ignorant of reality.  things just don't work that way.

</F>