|
Subject: Re: [xsl] Output Encoding via <xsl:result-document> From: "Don Smith dsmith_lockesmith@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 15 Apr 2023 15:24:44 -0000 |
Thanks Detlef.B
Yes, it appears the default Oxygen encoding of CP-1252 was being applied. I
changed the default to UTF-8 and it's working as expected now.
But it's not clear to me why this happened to begin with: the source file is
XML (BITS) with a ".xml" extension. But that's a question for the Oxygen
forum.
Thanks,
DonB
On Saturday, April 15, 2023 at 04:22:13 AM CDT, Detlef Reineke
detlef_reineke@xxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
<!--#yiv9478207354 filtered {}#yiv9478207354 filtered {}#yiv9478207354
filtered {}#yiv9478207354 p.yiv9478207354MsoNormal, #yiv9478207354
li.yiv9478207354MsoNormal, #yiv9478207354 div.yiv9478207354MsoNormal
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv9478207354 a:link, #yiv9478207354
span.yiv9478207354MsoHyperlink
{color:blue;text-decoration:underline;}#yiv9478207354 a:visited,
#yiv9478207354 span.yiv9478207354MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}#yiv9478207354
p.yiv9478207354msonormal0, #yiv9478207354 li.yiv9478207354msonormal0,
#yiv9478207354 div.yiv9478207354msonormal0
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"Times New
Roman", serif;}#yiv9478207354 span.yiv9478207354EstiloCorreo18
{font-family:"Calibri", sans-serif;color:windowtext;}#yiv9478207354
.yiv9478207354MsoChpDefault {font-size:10.0pt;}#yiv9478207354 filtered
{}#yiv9478207354 div.yiv9478207354WordSection1 {}-->
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.
B
Detlef
B
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: [xsl] Output Encoding via <xsl:result-document>
B
I've inherited a XSLT 2.0 transformation that outputs a CSV file using the
result-document instruction like so:
B
<xsl:result-document href="blah.xml" method="text">
B
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:
B
<xsl:result-document href="blah.xml" method="xml" encoding="UTF-8"
omit-xml-declaration="yes">
B
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.
B
Something weird is going on that I don't understand. Why isn't the encoding
instructionB encoding="UTF-8" having effect?
B
Thanks,
B
Don
XSL-List info and archive
EasyUnsubscribe (by email)
XSL-List info and archiveEasyUnsubscribe(by email)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Output Encoding via <xsl:, Detlef Reineke detle | Thread | [xsl] How should I handle very simi, Richard Kerry richar |
| Re: [xsl] Output Encoding via <xsl:, Detlef Reineke detle | Date | [xsl] How should I handle very simi, Richard Kerry richar |
| Month |