[Tutor] UnicodeEncodeError in python

Juan Christian juan0christian at gmail.com
Thu Sep 11 20:43:20 CEST 2014


I'm iterating through Steam users and friend lists.

So, my program was working good, but then I got some UnicodeEncodeError
randomly, I didn't know where was the problem, then I was checking the
names that I got from the API by hand, and then I saw users with ™, ︻デ═一,
︻芫━━━━, º³® and tons of others different chars in their names...

How can I make a "bulletproof" program against these chars? Can Python read
them using some sort of function?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140911/532a42e7/attachment.html>


More information about the Tutor mailing list