Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed bug in Windows #7

Merged
merged 1 commit into from Oct 20, 2019
Merged

Fixed bug in Windows #7

merged 1 commit into from Oct 20, 2019

Conversation

wannaphong
Copy link
Contributor

@wannaphong wannaphong commented Oct 19, 2019

Fixed bug in Windows

>>> from wordcut import Wordcut
>>> wordcut = Wordcut.bigthai()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\TC\Anaconda3\lib\site-packages\wordcut\__init__.py", line 206, in bigthai
    word_list = list(set([w.rstrip() for w in dict_file.readlines()]))
  File "C:\Users\TC\Anaconda3\lib\encodings\cp874.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 2: character maps to <undefined>

@veer66 veer66 merged commit 97ddca7 into veer66:master Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants