mysterious unicode
Gerry
gerard.blais at gmail.com
Tue Mar 20 19:47:22 EDT 2007
On Mar 20, 7:29 pm, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Tue, 20 Mar 2007 19:35:00 -0300, Gerry <gerard.bl... at gmail.com>
> escribió:
>
Thanks! - that helps a lot.
I'm still mystified why:
qno was ever unicode, and why
qno.encode("ascii", "replace") is still unicode.
Gerry
>
>
> py> qno = u"Q1"
> py> qno
> u'Q1'
> py> print qno
> Q1
> py> print (qno,2)
> (u'Q1', 2)
>
> --
> Gabriel Genellina
More information about the Python-list
mailing list