Dave's Brain

Browse - Computer Tips - What are those weird binary bytes at the start of my XML file?

Date: 2007Jan12
Keywords: BOM, junk

Q.  What are those weird binary bytes at the start of my XML file?

A.  They indicate the encoding of the file.
The common encoding are: UTF-7, UTF-8, UTF-16 Little or Big Endian.
Since all most files are UTF-8 this is unnecessary and it may even confuse some programs.

More Info:
http://en.wikipedia.org/wiki/Byte_Order_Mark

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.