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)