Skip to content

Commit f4b83ae

Browse files
authored
UTF-8 encoding for pyproject.toml (#5203)
1 parent e3f4d16 commit f4b83ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/packages/flet-cli/src/flet_cli/utils/pyproject_toml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def load_pyproject_toml(project_dir: Path):
88
pyproject_toml: Optional[dict[str, Any]] = {}
99
pyproject_toml_file = project_dir.joinpath("pyproject.toml")
1010
if pyproject_toml_file.exists():
11-
with pyproject_toml_file.open("r") as f:
11+
with pyproject_toml_file.open("r", encoding="utf-8") as f:
1212
pyproject_toml = toml.loads(f.read())
1313

1414
def get_pyproject(setting: Optional[str] = None):

0 commit comments

Comments
 (0)