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

Re: cursed RTF outputs

Subject: Re: cursed RTF outputs
From: "Jean-Paul Rehr rehrjb@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Jan 2023 16:42:51 -0000
Re:  cursed RTF outputs
Sorry, I confused Windows-1250 and Windows-1252. Windows-1252 does work for
my character set (French). Notwithstanding that, the output results when
opened in rtf do not show up correctly.


On Sat, Jan 28, 2023 at 5:31 PM Martin Honnen martin.honnen@xxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

>
> Am 1/28/2023 um 5:23 PM schrieb Jean-Paul Rehr rehrjb@xxxxxxxxx:
>
> It seems I am stuck in 2004 problems.
>
> I am trying to get an RTF-compliant output from XSLT (3.0) but as usual,
> like back in the old mailing lists, characters aren't coming through. Has
> this been solved with a particular encoding yet?
>
> My test situation is with this node:
>
> <node>C) C( C  B( B0 C.</node>
>
> And this stylesheet using output encoding Windows-1250:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="3.0">
>
>   <xsl:mode on-no-match="shallow-copy"/>
>   <xsl:output method="text" encoding="Windows-1250"/>
>
>   <xsl:template match="/">
>     {\rtf1
> \par <xsl:apply-templates/>
>      }
>   </xsl:template>
>
> </xsl:stylesheet>
>
> I get an rtf document with these characters
>
> C ? ? B$ B. C4
>
> Many thanks in advance,
> Jean-Paul
>
> PS: incidentally https://xsltfiddle.liberty-development.net/6qLYEp2 even
> says it won't output because the characters are unsupported. So this just
> adds to my confusion about how to make any of this work.
>
>
> Well, looking at https://en.wikipedia.org/wiki/Windows-1250 the character
> C( is not part of the characters encodable by 1250.
>
> I don't know about RTF, is there no way these days to use an Unicode
> encoding like UTF-8?
>
> The provided sample also works for me using Windows-1252 but I can't tell
> which languages you want to cover.
>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/3377836> (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.