diff --git a/test-sourcekit-lsp/test-sourcekit-lsp.py b/test-sourcekit-lsp/test-sourcekit-lsp.py index 1b1d37e..d60c1f2 100644 --- a/test-sourcekit-lsp/test-sourcekit-lsp.py +++ b/test-sourcekit-lsp/test-sourcekit-lsp.py @@ -136,7 +136,7 @@ def main(): print('==== OUTPUT ====') skargs = [args.sourcekit_lsp, '--sync', '-Xclangd', '-sync'] - p = subprocess.Popen(skargs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True) + p = subprocess.Popen(skargs, stdin=subprocess.PIPE, stdout=subprocess.PIPE, universal_newlines=True, encoding='utf-8') out, _ = p.communicate(lsp.script) print(out) print('')