How to strip off BOM

Oct 17, 2014 at 10:25 PM
Great tool thank you.

My command lines are something like:
fnr --cl --find "[\r\n\t\f ]*,[\r\n\t\f ]*" --replace "," --filemask kac_events.html --dir C:\Software.ins\SearchReplace\FNR-exe --setErrorLevelIfAnyFileErrors --useEscapeChars --showEncoding --alwaysUseEncoding utf-8 --useRegEx
My input file is encoded utf-8 without BOM

After processing with fnr.exe and I upload the files to the internet and test with the validator I obtain the message "Byte-Order Mark found in UTF-8 File. The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to cause problems for some text editors and older browsers. You may want to consider avoiding its use until it is better supported."

If I open the file in notepad.exe in ANSI mode I can see  at the top of the file.

[I can use a BOM stripper utility to strip the BOM but that will not run unattended]

Please advise if there is some method to output UTF-8 files without BOM

Many thanks for this tool.