Blog
About
Posts with #encoding tag
Wed 26 January 2011
Python UTF-8 print fails when redirecting stdout
Consider the following piece of code: # -*- coding: utf-8 -*- print u"Վարդանաշեն" Running this in a terminal works: $ python test.py Վարդանաշեն Redirecting standard output to a file fails: $...