#58 - fixing issue with input encoding on win32 platform
This commit is contained in:
parent
beb955f7c9
commit
a5508b29ed
|
@ -206,7 +206,10 @@ class JqPrettyJson(sublime_plugin.WindowCommand):
|
|||
raw_json = self.get_content()
|
||||
|
||||
if SUBLIME_MAJOR_VERSION < 3:
|
||||
out, err = p.communicate(bytes(raw_json))
|
||||
if sys.platform != 'win32':
|
||||
out, err = p.communicate(bytes(raw_json))
|
||||
else:
|
||||
out, err = p.communicate(unicode(raw_json).encode('utf-8'))
|
||||
else:
|
||||
out, err = p.communicate(bytes(raw_json, "utf-8"))
|
||||
output = out.decode("UTF-8").strip()
|
||||
|
|
Loading…
Reference in New Issue