It gets tedious to have to append .encode('utf-8') to all my unicode
strings when I print them, as in:
I want to tell python to apply this encoding automatically to
anything argument passed to print.
How can I do this?
PS: BTW, sys.setdefaultencoding is *not* the answer, since this
method gets removed by site.py...
Just wrap sys.stdout in a codecs-module based file-wrapper.
sys.stdout = codecs.getwriter("utf-8")(sys.stdout)
That's exactly what I was looking for. Thanks!