Skip to content

Commit

Permalink
fix(framework) Set UTF-8 duringflwr new (#4653)
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Dec 12, 2024
1 parent 879e8c7 commit 9ee4bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/flwr/cli/new/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def render_template(template: str, data: dict[str, str]) -> str:
def create_file(file_path: Path, content: str) -> None:
"""Create file including all nessecary directories and write content into file."""
file_path.parent.mkdir(exist_ok=True)
file_path.write_text(content)
file_path.write_text(content, encoding="utf-8")


def render_and_create(file_path: Path, template: str, context: dict[str, str]) -> None:
Expand Down

0 comments on commit 9ee4bde

Please sign in to comment.