Skip to content

Commit

Permalink
Merge pull request #22 from koaleksa/fix-encoding-issue
Browse files Browse the repository at this point in the history
Fix 'character maps to <undefined>' issue on windows by setting encoding to 'utf-8'
  • Loading branch information
raethlein authored Jul 27, 2021
2 parents ebf6ea8 + a239a4b commit ac4f681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lazydocs/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def to_md_file(
)

print("Writing {}.".format(md_file))
with open(os.path.join(out_path, md_file), "w") as f:
with open(os.path.join(out_path, md_file), "w", encoding="utf-8") as f:
f.write(markdown_str)


Expand Down

0 comments on commit ac4f681

Please sign in to comment.