- Fixes encoding issues.

This commit is contained in:
Thiago Araújo 2017-07-30 23:45:46 -03:00
parent 6df26ffd57
commit 165ebad93f

View file

@ -172,7 +172,7 @@ class BaseFormatter(object):
if self.output_fd is not None:
self.output_fd.write(output + self.newline)
if self.output_fd is None or self.options.tee:
print(output)
print(output.encode('utf-8'))
def write(self, line, source):
"""Write the line either to the output file or stdout.