RicterZ / nhentai

nhentai doujinshi downloader
http://nhentai.net
MIT License
771 stars 109 forks source link

emm....我又来了...貌似是没法解码 #25

Closed demogest closed 5 years ago

demogest commented 5 years ago

Traceback (most recent call last): File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\Scripts\nhentai-script.py", line 11, in load_entry_point('nhentai==0.2.14', 'console_scripts', 'nhentai')() File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\nhentai-0.2.14-py3.6.egg\nhentai\command.py", line 51, in main generate_html(options.output_dir, doujinshi) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\nhentai-0.2.14-py3.6.egg\nhentai\utils.py", line 69, in generate_html f.write(data) UnicodeEncodeError: 'gbk' codec can't encode character '\xb2' in position 132: illegal multibyte sequence

RicterZ commented 5 years ago

编码的问题,愁死我了

Domege Xu notifications@github.com 于 2018年8月11日周六 20:45写道:

Traceback (most recent call last): File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\Scripts\nhentai-script.py", line 11, in load_entry_point('nhentai==0.2.14', 'console_scripts', 'nhentai')() File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\nhentai-0.2.14-py3.6.egg\nhentai\command.py", line 51, in main generate_html(options.output_dir, doujinshi) File "C:\Users\lenovo\AppData\Local\Programs\Python\Python36\lib\site-packages\nhentai-0.2.14-py3.6.egg\nhentai\utils.py", line 70, in generate_html f.write(data) UnicodeEncodeError: 'gbk' codec can't encode character '\xb2' in position 132: illegal multibyte sequence

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/RicterZ/nhentai/issues/25, or mute the thread https://github.com/notifications/unsubscribe-auth/AFCbx1wzeBUVoLbyEz_fOz7hwple0Ug_ks5uPtH8gaJpZM4V5J8Q .

-- Ricter Z

demogest commented 5 years ago

这个是在生成id=126813的本子的html时出错的

RicterZ commented 5 years ago

fixed