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

Re: Output Encoding via <xsl:result-document>

Subject: Re: Output Encoding via <xsl:result-document>
From: "Detlef Reineke detlef_reineke@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 15 Apr 2023 09:22:08 -0000
Re:  Output Encoding via <xsl:result-document>
Hi Don,

it seems that Oxygen is applying fallback character encoding which, by
default, is CP-1252 (check Preferences > Encoding). Usually, fallback
character encoding is triggered when source documents are non-XML or encoding
is not determined by the file type. So maybe you should check your source
document first.



Detlef



De: Don Smith dsmith_lockesmith@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Enviado el: viernes, 14 de abril de 2023 23:57
Para: XSLT <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Asunto:  Output Encoding via <xsl:result-document>



I've inherited a XSLT 2.0 transformation that outputs a CSV file using the
result-document instruction like so:



<xsl:result-document href="blah.xml" method="text">



On my computer, the @method setting resulted in a text document encoded in
CP-1252 (according to the Oxygen XML Editor). But the source document for the
transform is XML in UTF-8 and I'm getting reports of unsupported characters in
CP-1252. I want to change the encoding to UTF-8 to support all characters. So
I changed the result-document instruction to be:



<xsl:result-document href="blah.xml" method="xml" encoding="UTF-8"
omit-xml-declaration="yes">



And according to Oxygen the output encoding is STILL CP-1252 and it won't open
the file due to unsupported characters. I've checked the encoding with various
other apps (like NotePad++) and they say the encoding is UTF-8.



Something weird is going on that I don't understand. Why isn't the encoding
instruction encoding="UTF-8" having effect?



Thanks,



Don

XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>

EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/2507674>  (by
email <> )

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.