Closed jyore closed 5 years ago
Thanks so much. I don't test on Mac, so I never would have picked this up. I also noticed an issue with how that website is being imported on other platforms, which I'll fix shortly.
no problem. glad i could help :) good work on the add-on so far. i am looking forward to using it more in the future.
I started to experiment with this addon and it seems that on a mac, pages that are not already encoded in UTF-8 will fail to import and throw an exception.
I was testing the addon using this site, which is Shift_JIS encoded. http://hukumusume.com/douwa/betu/world/07/22.htm
On load, this error is produced.
After inspecting the code and testing, I think that the strict decode call should just be removed. Reason being that BeautifulSoup intrinsically transforms the content to UTF-8 during parsing (if possible). Because of this, it is not necessary to do strict decoding before passing the document. This is basically what the non-mac version does, in the else statement as well.
After removing the decode call, the import works fine: