zachary822 / chinese-converter

Converts between traditional and simplified Chinese
https://pypi.org/project/chinese-converter/
MIT License
24 stars 8 forks source link

UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 2: illegal multibyte sequence #4

Closed IMBAepsilon closed 8 months ago

IMBAepsilon commented 9 months ago

When I only import chinese_converter I get this

import chinese_converter
  File "E:\Study\Anaconda3\envs\whisper\lib\site-packages\chinese_converter\__init__.py", line 12, in <module>
    traditional, simplified = f.read().strip(), g.read().strip()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 2: illegal multibyte sequence

ps: 电脑的语言环境是简体中文

zachary822 commented 9 months ago

Which version are you installing?

IMBAepsilon commented 9 months ago

Which version are you installing?

chinese-converter 1.1.1

zachary822 commented 8 months ago

You might need to reinstall. The code in your error message does not match the latest version.