Home > Computers > programming > python > pythonunicode | About

The rule is simple :

If you are *reading* unicode and want to print it to the console (or to another program), you should *always* transform the unicode into a string

mystring = function_that_returns_unicode()
print mystring.encode("utf-8")

No more problems !

contact : @ychaouche yacinechaouche at yahoocom

QR Code
QR Code pythonunicode (generated for current page)