Skip to content

Commit

Permalink
fix unicode decode err
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinkle23897 committed Feb 23, 2020
1 parent 158c68e commit e0eeeba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def sync_notify(c):
return
for n in notify:
path = os.path.join(pre, escape(n['bt']) +'.txt')
open(path, 'w').write(build_notify(n))
open(path, 'w', encoding='utf-8').write(build_notify(n))

def sync_file(c):
now = os.getcwd()
Expand Down

0 comments on commit e0eeeba

Please sign in to comment.