"Special" characters not showing

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Wabiloo
Posts: 9
Joined: Fri Apr 15, 2005 2:18 pm

"Special" characters not showing

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post 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
Post Reply