Greg, The standard states quite explicitly that a BOM in UTF-8 is unnecessary[1, 2] and discouraged[2]. I never understood why Microsoft's Unicode implementation emitted it.
There is an overload of the System.Text.UTF8Encoding constructor that lets you encode without a BOM. [1] http://www.unicode.org/faq/utf_bom.html#bom5 [2] http://www.unicode.org/versions/Unicode5.0.0/ch02.pdf (section 2.6, p. 36) -- Thomas Koster On 7 October 2014 23:08, Greg Keogh <g...@mira.net> wrote: > Folks, I'm returning an XML element fragment in the body of a REST style > response, and in Fiddler I noticed it looks like this: > > EFBBBF <result>....</result> > > So the utf-8 BOM is going out, but I'm not sure if this is desirable, > standard or expected. This service is to be consumed by non .NET clients, so > I have to play nice for everyone. Are there official rules or other > conventions to follow regarding this? > > Greg K