findstr or grep that autodetects chararacter encoding (UTF-16)
问题 I want to do this: findstr /s /c:some-symbol * or the grep equivalent grep -R some-symbol * but I need the utility to autodetect files encoded in UTF-16 (and friends) and search them appropriately. My files even have the byte-ordering mark FFEE in them so I'm not even looking for heroic autodetection. Any suggestions? I'm referring to Windows Vista and XP. 回答1: Thanks for the suggestions. I was referring to Windows Vista and XP. I also discovered this workaround, using free Sysinternals