print python setencode code example Example: print python setencode sys.stdout.reconfigure(encoding='utf-8')