[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Encoding problem or what else?

Subject: RE: Encoding problem or what else?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 8 Dec 2005 08:31:18 -0000
RE:  Encoding problem or what else?
> i checked the file with an HEX editor and it turned out that 
> there are three
> bytes whose hex code is EF BB BF at the beginning of the 
> offending file.
> I guess this must be the reason why the parser is 
> complaining, though I am
> still not clear if this is some sort of multi-byte character 
> or just some
> junk that happens to be there. 

This is a byte-order-mark, a signal that the file is in UTF-8 encoding. Some
parsers allow a BOM at the start of a UTF-8 file, others don't. The latest
specs say that it should be accepted, but older parsers don't recognize it.
It's generated automatically by some software that writes UTF-8, especially
Microsoft software.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.