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

Re: ÅÄÖåäö commes out as ??

Subject: Re: ÅÄÖåäö commes out as ??
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 9 Jun 2006 12:00:35 +0100
platform default encoding
On 6/9/06, Niklas Holmberg <Niklas.Holmberg@xxxxxxxxx> wrote:

Hey, that actually worked =) But i guess now that the encoding that i specify in the xsl will be overruled and all transformations will be to UTF-8? What can be done about that? Add an extra argument?

Good :)


Adding that switch just sets your platform default encoding - that is,
any operation that involves an encoding where one hasn't been
specified will use the platform default encoding, which in your case
was probably ISO-8859-1.  That encoding didn't contain a mapping for
the character you are trying to output, so ? is used instead.  Now
that the platform default encoding is set to UTF-8, that does contain
a mapping for your characters and so the correct bytes are written to
disk.

The goal with encoding is to ensure all encodings match - the encoding
that is used to read the XML file must match the encoding in the XML
prolog, and equally the encoding that is used when the result is
written to disk must match the output encoding specified in the
stylesheet.  Common sense really.

cheers
andrew

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.