Hi,
Enviornment Details :
TS 7.3
Presentation Template : XSL Template
DCR Type : XML
I am generating footer.ascx file using the footer.xml and footer.xsl via formpublisher. The footer.xml has Korean Language contents, the file get generated successfully but when I preview the index.aspx which includes the footer.ascx the all Korean characters renders as junk characters.
I have set the encoding to UTF-8 in the footer.xsl, as shown below :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan" version="1.0" extension-element-prefixes="redirect"
xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" exclude-result-prefixes="xalan">
<xsl
utput method="xml" encoding="UTF-8" indent="yes" xalan:indent-amount="2"/>
<xsl:template match="/">
<div id="footer">
<div id="footerNav">
--- some logic----
</div>
</div>
</xsl:template>
</xsl:stylesheet>
Although if I open the file in the editor, the Korean characters seems perfectly fine, I believe it is the browser which is not able to render them properly.
One thing to note is that if I edit the footer.ascx in an notepad++ and encode to UTF-8 and save it, then the index.aspx renders the charcaters fine on the browser.
It seems like , the footer.ascx is not getting encoded to UTF-8 while XSL transformation .
Any pointers which can help !
Thanks
PP