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

Re: Newbie question : accent, special chars,...


xml accent
On Fri, Oct 15, 2004 at 02:59:00PM +0200, Benoit Mangez wrote:
> Here is the content of a non-valid xml file :
> 
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <Item  description="voici quelques caractères accentués : é ï è à 
> utilisés en français"/>
> 
> It's not valid because of the special chars inside attribute 
> "description".

XML uses two term -- well-formed and valid.
As long as you actually use ISO 8859-1 for those characters, the
document should be well-formed.  It isn't valid because you don't
have a "DTD".  But I'll assume you just want well formed.

You didn't include the exact error message, so I can only guess that in
fact your file is in UTF-8 and not ISO-8859-1, so changing the encoding
may solve your problem.

Liam


-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/

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.