miraclemaker
Programmer
Hi guys, I'm translating some XML with XSL, and have come across the following problem:
here's a chunk of my XML:
Here's my XSL for that chunk:
unfortunately this resutls in the following translated document:
- you can see the 'Â' character is being added before secial characters like the quote used and the hyphen. Is it becuase these are double-byte characters outside of the standard ascii range? Any idea how to prevent the extra character from being added?
I'm using PHP / Sablotron to combine my XML and XSL.
Many thanks in advance.
here's a chunk of my XML:
Code:
<long_description>
Heavy Weapon Deluxe est un jeu d’arcade où se déchaîne une action trempée d’adrénaline, à déroulement latéral, sur le thème du tir – dans le ...
</long_description>
Here's my XSL for that chunk:
Code:
<xsl:template match="long_description">
<p>
<xsl:value-of select="." disable-output-escaping="yes" />
</p>
</xsl:template>
unfortunately this resutls in the following translated document:
Code:
Heavy Weapon Deluxe est un jeu dÂ’arcade où se déchaîne une action trempée dÂ’adrénaline, à déroulement latéral, sur le thème du tir – dans le
- you can see the 'Â' character is being added before secial characters like the quote used and the hyphen. Is it becuase these are double-byte characters outside of the standard ascii range? Any idea how to prevent the extra character from being added?
I'm using PHP / Sablotron to combine my XML and XSL.
Many thanks in advance.