Removing BOM from UTF-8

Gerard Seibert gerard at seibercom.net
Sat Feb 18 13:57:05 PST 2006


Benjamin A'Lee wrote:

> It shouldn't be writing any new files; it prints the filtered text to
> stdout.
> 
>     Ben

OK, then that is the problem. I need it to actually write the file. It
could either rename the old file and then rewrite it which would be nice,
or just over write the old file. The BOM is just the first three
characters in the file. I am assuming that it would not be removing
anything else in the file.

-- 
Gerard Seibert
gerard at seibercom.net



More information about the freebsd-questions mailing list