From bfe9ad807e29ada85486001efcae1e605630fb76 Mon Sep 17 00:00:00 2001 From: LumiaGG <59308965+LumiaGG@users.noreply.github.com> Date: Wed, 25 Jan 2023 14:27:04 +0800 Subject: [PATCH] Fix Stream did not contain valid UTF-8 (#282) (#332) This fix is for some characters that were wrongly formatted because of lacking UTF-8 --- pynecone/compiler/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynecone/compiler/utils.py b/pynecone/compiler/utils.py index 23a719470..6868b13d6 100644 --- a/pynecone/compiler/utils.py +++ b/pynecone/compiler/utils.py @@ -302,7 +302,7 @@ def write_page(path: str, code: str): code: The code to write. """ utils.mkdir(os.path.dirname(path)) - with open(path, "w") as f: + with open(path, "w", encoding="utf-8") as f: f.write(code)