diff --git a/.gitignore b/.gitignore index 1d6ba36..6aece2e 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ dist/ .DS_Store output/ venv/ +.vscode/ diff --git a/nhentai/serializer.py b/nhentai/serializer.py index 550022c..07f9583 100644 --- a/nhentai/serializer.py +++ b/nhentai/serializer.py @@ -32,7 +32,7 @@ def serialize_json(doujinshi, dir): def serialize_comic_xml(doujinshi, dir): from iso8601 import parse_date - with open(os.path.join(dir, 'ComicInfo.xml'), 'w') as f: + with open(os.path.join(dir, 'ComicInfo.xml'), 'w', encoding="utf-8") as f: f.write('\n') f.write('\n')