Another way to use the encode function is to convert the value on-the-fly, including it in the print statement.
If this is still too much typing, you will be glad to know that Python will take any object for the encode function, even an iterator. Therefore, one can also feed the encoding argument to a series of Unicode strings like this:
print x.encode("utf-8") print y.encode("utf-8") print z.encode("utf-8")
>>> convert_on_output = (x, y, z) >>> for j in convert_on_output: ... ÃÂ ÃÂ ÃÂ ÃÂ print j.encode("utf-8") ... ÃÂ© Ãâ Ã¡ÆÅ¾