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

RE: UTF-8 use with XML


utf 8 xml
Thanks Tim,

Here is the hex for <BirthCity>K?/BirthCity>: 

3C 42 69 72 74 68 43 69  74 79 3E 4B EF BF BD 2F 42 69 72 74 68 43 69 74 79
3E

EF BF BD are the questionable characters which replaced 3C.

Craig

-----Original Message-----
From: Tim Bray [mailto:tbray@t...]
Sent: Friday, June 13, 2003 11:16 AM
To: Long, Craig Z
Cc: xml-dev@l...
Subject: Re:  UTF-8 use with XML


Long, Craig Z wrote:
> Given the following element using a utf character (created by a user's
> system): <BirthCity>Trenton?/BirthCity> I've been told my system should be
> programmed to accept this.  I can't find any documentation which supports
> yes or no to this premise.  Currently we reject this as not well-formed
XML.
> Please offer expertise concerning this issue.

If it really contains a UTF8 character, no programming should be 
required, all conforming XMl software is required to accept UTF data. 
Things that could be wrong:

- there's an encoding declaration at the front of the file saying it's
   something other than UTF-8
- you think it's UTF-8 but it isn't.

If there's no encoding declaration, then the second is almost certainly 
true.  If you provide a hex dump of the affected region there are 
several people here who could look at it and tell you whether it's 
really UTF-8

-- 
Cheers, Tim Bray
         (ongoing fragmented essay: http://www.tbray.org/ongoing/)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.