unicode bit me
Piet van Oostrum
piet at cs.uu.nl
Sat May 9 08:01:51 EDT 2009
>>>>> "anuraguniyal at yahoo.com" <anuraguniyal at yahoo.com> (ac) a écrit:
>ac> also not sure why (python 2.5)
>ac> print a # works
>ac> print unicode(a) # works
>ac> print [a] # works
>ac> print unicode([a]) # doesn't works
Which code do you use now?
And what does this print?
import sys
print sys.stdout.encoding
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list