Subject: [xsl] Again: XML to RTF - display of Unicode characters From: Els van Trigt <evtrigt@xxxxxxxxx> Date: Tue, 10 Jun 2003 08:58:49 +0200 |
Someone must have gone down this road before... My XSL stylesheet converts from XML to RTF. Works fine. However, if opened in Word, it does not display the foreign (Arabic) symbols. Instead, I literally read the Unicode code (mapped to the XML by DTD). Example of an Arabic character: XML: &aeidasheiquot; DTD:"ẳ" (Unicode-hexadecimal) somehow mapped in RTF to: ẳ(decimal) As suggested by David last week, I changed my xsl:output to the following, but this does not work either: <xsl:output method="text" encoding="UTF-16"> The thus generated file cannot be opened in Word; I get plain text. When I use UTF-8 I get different characters - not the ones I need. The XML I am converting from is a mixture of different character sets (Latin, Arabic, Hebrew). The Windows code page number is: {\rtf1\ansi\ansicpg1252 I need some code in my XSL to RTF that makes all of the different encodings (Latin, Arabic, Hebrew, etc.) display properly when the RTF is opened in Word. I am using the Arial Unicode MS font. Who has the answer? Els van Trigt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.487 / Virus Database: 286 - Release Date: 6/1/2003 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XML::LibXSLT question, Jarno . Elovirta | Thread | Re: [xsl] Again: XML to RTF - displ, David Carlisle |
[xsl] XML::LibXSLT question, Simon . Fairey | Date | RE: [xsl] XML::LibXSLT question, Jarno . Elovirta |
Month |