in reply to Re: writing UTF-8 files
in thread writing UTF-8 files

I was under the impression that a BOM is only used for UTF-16 and UTF-32, since UTF-8 has a fixed byte-order. Apparently I was mistaken: UTF-8 may start with mark. this link has some useful information.