Dushistov / sdcv

https://dushistov.github.io/sdcv/
GNU General Public License v2.0
294 stars 42 forks source link

"Cannot convert __ to utf8" error when searching Chinese characters #17

Open rlue opened 7 years ago

rlue commented 7 years ago

Whenever I search for a Chinese phrase (in this case, say, 愉快), I get the following error:

Can not convert 愉快 to utf8.
轉換輸入資料時遇到不正確的位元組組合

This is the output of locale:

LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

If I export LANG=en_US.UTF-8, the error message reads out in English:

Can not convert 愉快 to utf8.
Invalid byte sequence in conversion input

FWIW, I'm on Mac OS X 10.11 El Capitan in the native Terminal.app terminal emulator.