What happened with python? messed strings?
Juergen Perlinger
juergen.perlinger at t-online.de
Sun Apr 20 16:06:38 EDT 2008
Juergen Perlinger wrote:
> algaba at droog.sdf-eu.org wrote:
> [snip]
> Basically you're not using ASCII encoding in your source text... You need
> to define an encoding for your source if you're using german umlauts or
> other fancy stuff.
>
> See chapter 2.1.4 of the reference manual, and add e.g.
>
> # -*- coding: utf-8 -*-
>
> as first or second line to your script. Make sure your editor talks utf-8,
> or use the encoding used by your editor. cp1552 is a good choice for
> windows...
>
stupid me. cp1252, of course.
--
juergen 'pearly' perlinger
"It's hard to make new errors!"
More information about the Python-list
mailing list