Commits

Dan Connolly committed f1b298b

set stdout encoding to utf-8

Comments (0)

Files changed (1)

 from trxtsv import progress
 
 def main(argv):
+    import sys
+    import codecs
+    sys.stdout = codecs.getwriter('utf8')(sys.stdout)
+
     xwr = XMLWriter.T(sys.stdout)
     sink = TrxSink(xwr)
     eachFile(argv[1:], sink)