设置encoding=utf-8

This commit is contained in:
zhbaor 2024-09-23 20:30:32 +08:00
parent 4308e72aa4
commit 7a34437ab2

View file

@ -62,13 +62,14 @@ class Api:
bufsize=1, bufsize=1,
text=True, text=True,
cwd=cwd, cwd=cwd,
encoding="utf-8",
) as p: ) as p:
for line in p.stdout: for line in p.stdout:
custom_event(line) custom_event(line)
window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api()) window = webview.create_window("mower-ng launcher", "dist/index.html", js_api=Api())
webview.start() webview.start(debug=True)
with config_path.open("w") as f: with config_path.open("w") as f:
json.dump(config, f) json.dump(config, f)