From b3c3d9bcb9c2fa76106a4089b3a996c98e363652 Mon Sep 17 00:00:00 2001 From: Thomasedv Date: Sat, 17 Apr 2021 20:11:16 +0200 Subject: [PATCH] Use utf-8 encoding for loadscript.vpy, handles nonstandard characters. --- av1an/vapoursynth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av1an/vapoursynth.py b/av1an/vapoursynth.py index 2d991f3..11fa115 100644 --- a/av1an/vapoursynth.py +++ b/av1an/vapoursynth.py @@ -48,7 +48,7 @@ def create_vs_file(temp: Path, source, chunk_method): 'core.lsmas.LWLibavSource(r"{}", cachefile="{}").set_output()' ) - with open(load_script, "w+") as file: + with open(load_script, "w+", encoding='utf-8') as file: file.write(script.format(Path(source).resolve(), cache_file)) cache_generation = f"vspipe -i {load_script.as_posix()} -i -"