findstr or grep that autodetects chararacter encoding (UTF-16)

后端 未结 7 1170
遥遥无期
遥遥无期 2021-01-04 08:34

I want to do this:

 findstr /s /c:some-symbol *

or the grep equivalent

 grep -R some-symbol *

but I need

相关标签:
7条回答
  • 2021-01-04 09:28

    A workaround is to convert your UTF-16 to ASCII or ANSI

    TYPE UTF-16.txt > ASCII.txt
    

    Then you can use FINDSTR.

    FINDSTR object ASCII.txt
    
    0 讨论(0)
提交回复
热议问题