I've got a log file with some bad characters in it. While there are many, the one I'm specifically interested in at the moment is ÿ
When I try to do a simple select-string with it, I get no results at all:
select-string -path D:\logs\*.log -Pattern 'ÿ'
I have tried adding encoding, but that didn't return any results either. I tried all of the following:
select-string -path D:\logs\*.log -Pattern 'ÿ' -Encoding "Unicode"
select-string -path D:\logs\*.log -Pattern 'ÿ' -Encoding "UTF8"
select-string -path D:\logs\*.log -Pattern 'ÿ' -Encoding "ASCII"
What am I missing?