Skip to content
Snippets Groups Projects
Commit f6658e06 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in unicode conversion

parent 9ce4cf7f
No related branches found
No related tags found
No related merge requests found
...@@ -885,6 +885,9 @@ class kat(object): ...@@ -885,6 +885,9 @@ class kat(object):
for line in iter(p.stderr.readline, ""): for line in iter(p.stderr.readline, ""):
if len(line) > 0: if len(line) > 0:
if isinstance(line, unicode):
import unicodedata
line = unicodedata.normalize('NFKD', line).encode("ascii", "ignore")
if line.lstrip().startswith('**'): if line.lstrip().startswith('**'):
if self.verbose: sys.stdout.write(line) if self.verbose: sys.stdout.write(line)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment