Page 1 of 1

"Special" characters not showing

Posted: Mon Dec 04, 2006 6:28 pm
by Wabiloo
Hi!

I'm opening an XSLT file in Oxygen, that I know contains some "special" characters (I guess unicode ones). Oxygen doesn't display them at all, whatever font I use for the editor. Worse, if I save the file, these special characters disappear.

Opening the file with notepad++ shows the following:
<xsl:variable name="string1">
<xsl:call-template name="replaceCharsInString">
<xsl:with-param name="stringIn" select="string($stringIn)" />
<xsl:with-param name="charsIn" select="'Ã'" /> <!--  -->
<xsl:with-param name="charsOut" select="''" />
</xsl:call-template>
</xsl:variable>
Opening (and saving) it with Oxygen shows:
<xsl:variable name="string1">
<xsl:call-template name="replaceCharsInString">
<xsl:with-param name="stringIn" select="string($stringIn)" />
<xsl:with-param name="charsIn" select="''" /> <!-- Â -->
<xsl:with-param name="charsOut" select="''" />
</xsl:call-template>
</xsl:variable>

Any idea how I can get Oxygen to recognise these characters?

Fabre

Posted: Mon Dec 04, 2006 6:58 pm
by sorin_ristache
Hello,

This is an oXygen FAQ. First make sure that the encoding declared at the beginning of the document in the declaration that looks like

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
is the same as the encoding used to write the file on disk. A second thing to check is that you set in Options -> Preferences -> Font a font able to render all the characters of the encoding of your XML document. For example the Arial Unicode MS font should cover most Unicode encodings that are frequently used.


Regards,
Sorin