searching for binary chars
Posted: Sat Jul 09, 2011 12:26 pm
I need to search all open files OR a folder of files (OR if all else fails at least a file) to find any any char that is not, basically, what you would see on the keyboard, and either put out a list or mark them.
[Reason: I need to replace any non-keyboard character with its unicode equivalent. I can do that, but sometimes in big text files, frankly some little unicode character gets missed, like an o with an umlaut or a dash that turns out to be a microsoft endash or something like that. When I zip my files to import them into my corp software, it barfs if there is even one binary char.]
So I want a way to search and find "any non-keyboard char" basically.
I searched on this and found a lot about binary files and some about chars but nothing about searching for chars based on that classification.
Best,
PJ
[Reason: I need to replace any non-keyboard character with its unicode equivalent. I can do that, but sometimes in big text files, frankly some little unicode character gets missed, like an o with an umlaut or a dash that turns out to be a microsoft endash or something like that. When I zip my files to import them into my corp software, it barfs if there is even one binary char.]
So I want a way to search and find "any non-keyboard char" basically.
I searched on this and found a lot about binary files and some about chars but nothing about searching for chars based on that classification.
Best,
PJ