EDN Admin
Well-known member
I have localized data in my database that I serialize out to XML using utf-8 encoding. The data looks fine when I just display the xml using (MVC) @html.raw
Now I want to format the data using an XSLT file. This works fine in english but some accent marks in French and German are replaced by Question Marks.
The beginning of my XSLT looks like this:
<pre class="prettyprint <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform
<xslutput method="html" encoding="utf-8" indent="yes" />
<xsl:template match="/
<xsl:text disable-output-escaping=yes><!DOCTYPE html></xsl:text> [/code]
toggling disable-output-escaping dose not seem to make any difference in the output
Any suggestions would be greatly appreciated.
Don Rule
http://translationalsoftware.com
View the full article
Now I want to format the data using an XSLT file. This works fine in english but some accent marks in French and German are replaced by Question Marks.
The beginning of my XSLT looks like this:
<pre class="prettyprint <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform
<xslutput method="html" encoding="utf-8" indent="yes" />
<xsl:template match="/
<xsl:text disable-output-escaping=yes><!DOCTYPE html></xsl:text> [/code]
toggling disable-output-escaping dose not seem to make any difference in the output
Any suggestions would be greatly appreciated.
Don Rule
http://translationalsoftware.com
View the full article