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? -- http://mail.python.org/mailman/listinfo/python-list