WojciechMula / pyahocorasick

Python module (C extension and plain python) implementing Aho-Corasick algorithm
BSD 3-Clause "New" or "Revised" License
929 stars 122 forks source link

Fix bug while installing in non-UTF-8 environment #48

Closed charlesxu90 closed 7 years ago

charlesxu90 commented 7 years ago

Error description:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 13: ordinal not in range(128)

WojciechMula commented 7 years ago

Thank you!

pombredanne commented 7 years ago

There was an issue when using this on Python 2. I pushed https://github.com/WojciechMula/pyahocorasick/commit/e9ae5d89d3e5d6aa23410b1d2728666a79ec102a to fix this

WojciechMula commented 7 years ago

@pombredanne Thanks!