Преглед на файлове

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
LumiaGG преди 2 години
родител
ревизия
bfe9ad807e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      pynecone/compiler/utils.py

+ 1 - 1
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)