Making all string literals Unicode

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

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

> 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

More information about the Python-list mailing list