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

Re: encoding

Subject: Re: encoding
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 19 Dec 2000 11:17:02 GMT
Re:  encoding
> My problem is that some xml pages claims to be utf-8 but sends some latin-1
> characters.

Guessing here, but I'd guess that the original XML doesn't have an
encoding declaration. (Which is a shame as you said you had no control
over that).

Do you know what encoding the http headers claim is being sent?

If the XML has no other encoding information then the XML parser will assume
utf8 and correctly die if characters are encoded in latin 1.

But if the HTTP headers say it's latin 1 then the parser may be able to
use that information as long as you are sending it straight to the 
parser via http, of course that doesn't work if you save it to a file,
then pass it to the parserr. (Which parser is it?)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

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


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.