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

Re: SAXON and UTF-8

Subject: Re: SAXON and UTF-8
From: Goetz Bock <bock@xxxxxxxxxxx>
Date: Thu, 27 Sep 2001 16:31:10 +0200
how to save utf 8
On Thu, Sep 27 '01 at 16:15, Gustaf Liljegren wrote:
> <?xml version="1.0"?>
> <a>ä</a>
> 
> The file is called "a.xml" and I intend to store it in UTF-8, so there's no
> need to declare the use of Latin 1. Here's the stylesheet:
This is only true, if you never store it in latin-1 and your editor
knows that is it latin-1 and you want to save utf-8
> 
> This is the result when I save a.xml in "Unicode" format:
> 
> <?xml version="1.0" encoding="utf-8"?><b>ä</b>
> 
> As expected, but why is the encoding declaration added?
While adding utf-8 is not needed (it is not needed to add an encoding
only for utf-8 and utf-16), adding an encoding is "good style".

sorry, I cant help you with your problem (I don't have an editor where I
could enter non ascii 7 characters with proper encodung at the moment,
stuck with the unix shell)
-- 
Goetz Bock                                              IT Consultant
Dipl.-Inf. Univ.

Attachment: pgp00003.pgp
Description: PGP signature

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.