UTF-8 in source code (Re: [Python-Dev] Internationalization Toolkit)

Guido van Rossum guido@CNRI.Reston.VA.US
Thu, 18 Nov 1999 13:57:36 -0500


> Would this definition be fine ?
> """
> 
>   u = ur'<raw-unicode-escape encoded Python string>'
> 
> The 'raw-unicode-escape' encoding is defined as follows:
> 
> · \uXXXX sequence represent the U+XXXX Unicode character if and
>   only if the number of leading backslashes is odd
> 
> · all other characters represent themselves as Unicode ordinal
>   (e.g. 'b' -> U+0062)
> 
> """

Yes.

--Guido van Rossum (home page: http://www.python.org/~guido/)