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

Re: (Auto-)detecting which XML encoding is necessary/

Subject: Re: (Auto-)detecting which XML encoding is necessary/required ?
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Dec 2007 17:56:47 +0000
Re:  (Auto-)detecting which XML encoding is  necessary/
>>>>> "Ben" == Ben Stover <bxstover@xxxxxxxxxxx> writes:

    Ben> Sometimes the situation occurs that an XML document does not
    Ben> fit to its own encoding setting in the first line.  Is there
    Ben> a way to find out the best/necessary/required encoding
    Ben> setting for an XML doc resp. what I have to write in the
    Ben> first line:

    Ben> <?xml version="1.0" encoding="iso-8859-1"?>

    Ben> or

    Ben> <?xml version="1.0" encoding="UTF-8"?>

    Ben> or simply

    Ben> <?xml version="1.0"?>

Just write:

<xsl:output method="xml" encoding="UTF-8"/>

and the XSLT processor will ensure both that the correct XML
declaration is written, and that the document is produced in the
correct encoding.
-- 
Colin Adams
Preston Lancashire

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.