I must remove Unicode characters from many files (many cpp files!) and I’m looking for script or something to remove these unicode. the files are in many folders!
I must remove Unicode characters from many files (many cpp files!) and I’m looking
Share
If you have it, you should be able to use iconv (the command-line tool, not the C function). Something like this:
The
-coption toiconvcauses it to drop characters it can’t convert. Then you’d verify the result, and go over them again, renaming the “.ascii” files to the plain filenames, overwriting the Unicode input files:Note that both of these commands are untested; verify by adding
echoafter thedoin each to make sure they seem sane.