WorksApplications / SudachiDict

A lexicon for Sudachi
233 stars 19 forks source link

Fixes UnicodeDecodeError (on windows) #33

Closed Dobatymo closed 3 years ago

Dobatymo commented 3 years ago

Installing the latest version of SudachiDict-core on Windows yields the following exception. Because on Windows the local encoding (and not UTF-8) is used to read README.md. The issue occurred only recently because Japanese text was added to the readme, which requires the correct encoding to be used now.

Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File \setup.py", line 54, in <module>
        long_description = fh.read()
    File \Python38\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 1272: character maps to <undefined>
kazuma-t commented 3 years ago

Thank you!