> Thanks! That's a nice little stumbling block for a newbie like me ;) Is > there a way to make utf-8 the default encoding for every string, so that > I do not have to encode each string explicitly?
You can make sys.stdout encode each string with UTF-8, with sys.stdout = codecs.getwriter('utf-8')(sys.stdout) Make sure that you then that *all* strings that you print are Unicode strings. HTH, Martin -- http://mail.python.org/mailman/listinfo/python-list