# This is required to properly decode the Tk wide-character strings. import sys sys.setdefaultencoding('utf8') print "Encoding set to UTF8"