Making all string literals Unicode

Richie Hindle richie at entrian.com
Mon May 15 17:01:35 CEST 2006


[Richie]
> is there a switch or an environment variable to
> make Python treat all string literals as unicode?

[Thomas]
> python -U

Ah!  Thanks.

(I see it's deliberately omitted from the documentation because pieces
of the standard library don't work with it, which is quite reasonable
and explains why I couldn't find it.)

-- 
Richie Hindle
richie at entrian.com



More information about the Python-list mailing list