Skip to content

Commit

Permalink
Fix issue apeyser#4 - Microsoft Windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed Jan 8, 2022
1 parent 86eb528 commit 94f9583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tab2opf.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def readkeys():
def writekeyfile(name, i):
fname = "{}{}.html".format(name, i)
if VERBOSE: print("Key file: {}".format(fname))
with open(fname, 'w') as to:
with open(fname, 'w', encoding='utf-8') as to:
to.write("""<?xml version="1.0" encoding="utf-8"?>
<html xmlns:idx="www.mobipocket.com" xmlns:mbp="www.mobipocket.com" xmlns:xlink="http://www.w3.org/1999/xlink">
<body>
Expand Down

0 comments on commit 94f9583

Please sign in to comment.