Skip to content
This repository has been archived by the owner on Nov 14, 2021. It is now read-only.

Commit

Permalink
fix: Windows encoding problem
Browse files Browse the repository at this point in the history
  • Loading branch information
younho9 committed Dec 4, 2020
1 parent 8bf0a23 commit ea1a91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narkdown/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,5 +507,5 @@ def create_directory(path):


def write_post(post, path, title):
file = open(path + "/" + title + ".md", "w")
file.write(post)
with open(path + "/" + title + ".md", "w", encoding="utf-8") as f:
f.write(post)

0 comments on commit ea1a91e

Please sign in to comment.