Question

I have a text file and it uses utf-8, but when the users view it in ANSI unknown characters appear at the very beginning. I am using C#.

Thanks.

Was it helpful?

Solution

This is a byte order mark. http://en.wikipedia.org/wiki/Byte_order_mark

The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top