Unicode problem
Rehceb Rotkiv
rehceb at no.spam.plz
Sun Apr 8 17:13:55 EDT 2007
On Sat, 07 Apr 2007 12:46:49 -0700, Gabriel Genellina wrote:
> You have to encode the Unicode object explicitely: print
> fileString.encode("utf-8")
> (or any other suitable one; I said utf-8 just because you read the input
> file using that)
Thanks! That's a nice little stumbling block for a newbie like me ;) Is
there a way to make utf-8 the default encoding for every string, so that
I do not have to encode each string explicitly?
More information about the Python-list
mailing list