xsl-list
[Top] [All Lists]

RE: Microsoft.XMLDOM UTF-8 Encoding!

2003-07-11 23:56:55
Jezz, don't sugar coat it Julian - just come right out with it. I hope
you don't talk to you significant other that way :-/

Cheers

On Fri, 2003-07-11 at 23:41, Julian Reschke wrote:
I am going way out here, so please swat me down if I am wrong. If I
remember correctly the first byte of a file will tell if it is (really)
utf-8 or iso-8859-1 encoded. You can say its utf-8 in the declaration,

Wrong.

but if the file is saved with an editor that is only capable of saving
in iso-8859-1 format, the first byte of the file will say so (something
about bit order I believe). What you could be running into is a file

No. The BOM (Byte Order Mark) is *optional* in UTF-8.

that truly is iso-8859-1 (or utf-16 etc) encoded saying its utf-8 - and
whatever process you are using to read the xml file doesn't buy what you
are saying.

Correct.

...
-- 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list