0
4

3 回答 3

1

That is a byte order mark (Unicode character U+FEFF) but it being displayed in an incorrect encoding. Since your document claims to be encoded as ISO-8859-1 there should not be a byte order mark.

于 2013-03-19T16:22:27.280 回答
0

The odd stuff at the beginning could be a byte-order mark, but I'm not sure.
A byte-order mark is a byte sequence inserted at the beginning of a file used to indicate the endianness of it, or whether the most significant byte comes first.

From your output, there are other weird characters (not text) in the file, so it is possible that the program inserted them in.

于 2013-03-19T16:22:32.393 回答
0

Probably your xml file is in UTF-8 format with BOM.

http://en.wikipedia.org/wiki/Byte_order_mark

Remove offending 8 bytes or save your xml without BOM using a text editor. If xml is dinamically generated, you have to modify the generation code.

Moreover, the BOM bytes seems encoded badly. Probably the xml was converted in a wrong way and BOM bytes were screwed up.

于 2013-03-19T16:23:06.503 回答