[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: XML/XHTML fragment to text
Abel Braaksma wrote:
Oh, I must be sleeping. The analysis above is correct, but the amount "offset by one" is also correct. A UTF-8 bytestream will never start with the bytes xFFEF or xFEFF. When the BOM is present in UTF-8, it is (and must be) encoded as xEFBBBF, meaning: the UTF-8 representation of U+FEFF. Ergo: the total amount (plus three for the BOM) is correct. Ergo: there are no mistakes in calculation when using the mentioned approach. Sorry for cluttering this thread... Cheers, -- Abel Braaksma
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|