Skip to content

Commit ac4f681

Browse files
authored
Merge pull request #22 from koaleksa/fix-encoding-issue
Fix 'character maps to <undefined>' issue on windows by setting encoding to 'utf-8'
2 parents ebf6ea8 + a239a4b commit ac4f681

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lazydocs/generation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def to_md_file(
227227
)
228228

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

233233

0 commit comments

Comments
 (0)