Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I find that the grep command in cygwin can't use chinese characters, how can i fix this?

I create a file named test.txt, which contains a chinese character "圣诞节" (meaning of christmas).

grep   "圣诞节"  /cygdrive/c/*

nothing happens, and the file will not be searched.

my problem is that chinese character can be displayed on my screen ,and chinese character can be inputted into cgywin console ,and i can search chinese character with grep,but can not get right result with grep "圣诞节" /cygdrive/c/*.

share|improve this question

Please see this link from Cygwin on setting up your locale. From there, you may be able to use Unicode characters with Cygwin utilities, but I haven't tested it to be sure.

share|improve this answer

the phenomenon vanish after my reinstallation of vim .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.