Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

the phenomenon vanish after my reinstallation of vim .

share|improve this answer
add comment

Your Answer

 
discard

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.