I've been working on a XSLT Document. And when i do conversion, the special characters(quotes, double quotes etc...) are shown as a rhombus with a queastion mark in it. i'm using UTF-8 Encoding and Altova xml spy software, please let me know how can i fix it.
I Declared my encoding in the first line.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ntw="Number2Word.uri" exclude-result-prefixes="ntw">
<xsl:output method="html"/>
<xsl:strip-space elements="*"/>
<xsl:variable name="ThisDocument" select="document('')"/>
<xsl:template match="/">
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE html>]]></xsl:text>
<html>
<head>
<xsl:text disable-output-escaping="yes"><![CDATA[</meta>]]></xsl:text>
<title>
<xsl:value-of select="part/title"/>
</title>
<link rel="stylesheet" href="main.css" type="text/css"/>
<xsl:text disable-output-escaping="yes"><![CDATA[</link>]]></xsl:text>
</head>
<body>
<xsl:apply-templates select="part"/>
<section class="tr_footnotes">
<hr/>
<xsl:apply-templates select="//footnote" mode="footnote"/>
</section>
</body>
</html>
and as an alternative i also tried the below.
<xsl:output method="html" encoding="utf-8"/>
but there is no change in result.
Thanks.