Skip to content

Commit

Permalink
Explicitly open file in utf-8 encoding, refs #10
Browse files Browse the repository at this point in the history
Thanks, RiverZhou
  • Loading branch information
simonw committed Feb 11, 2021
1 parent 1c8457d commit f901a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evernote_to_sqlite/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def cli():
def enex(db_path, enex_file):
"Convert Evernote .enex exports to SQLite"
file_length = os.path.getsize(enex_file)
fp = open(enex_file)
fp = open(enex_file, "r", encoding="utf-8")
db = sqlite_utils.Database(db_path)
with click.progressbar(length=file_length, label="Importing from ENEX") as bar:
for tag, note in find_all_tags(fp, ["note"], progress_callback=bar.update):
Expand Down

0 comments on commit f901a8a

Please sign in to comment.