Skip to content

Commit

Permalink
fix: Set encoding to utf8
Browse files Browse the repository at this point in the history
This improves compatibility with Windows
  • Loading branch information
keyboard-slayer committed Sep 25, 2024
1 parent 432afb2 commit b525f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meta/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@


def readFile(path: str) -> str:
with open(path, "r") as f:
with open(path, "r", encoding="utf8") as f:
return f.read()


def writeFile(path: str, content: str):
with open(path, "w") as f:
with open(path, "w", encoding="utf8") as f:
f.write(content)


Expand Down

0 comments on commit b525f4f

Please sign in to comment.