X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8149be213f1c8f52b0dbe6c213f6073af57fa954..e711679618ce704633f09bc10d2fe85291054536:/filters/syntax-highlighting.py?ds=sidebyside diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py index dcdba03..72d9097 100755 --- a/filters/syntax-highlighting.py +++ b/filters/syntax-highlighting.py @@ -25,6 +25,7 @@ from pygments import highlight from pygments.formatters import HtmlFormatter sys.stdin = codecs.getreader("utf-8")(sys.stdin.detach()) +sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) doc = sys.stdin.read() try: lexer = get_lexer_for_filename(sys.argv[1])