Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: specify utf-8 encoding when writing toml files (#6449)

Daizub149025c0f48
diff --git a/marimo/_utils/config/config.py b/marimo/_utils/config/config.py
index c90b04a745..9e26c848aa 100644
--- a/marimo/_utils/config/config.py
+++ b/marimo/_utils/config/config.py
@@ -48,4 +48,4 @@ class ConfigReader:
# None values is not valid toml, so we remove them
dict_data = {k: v for k, v in dict_data.items() if v is not None}
- self.filepath.write_text(tomlkit.dumps(dict_data))
+ self.filepath.write_text(tomlkit.dumps(dict_data), encoding="utf-8")