XSLT Transform of Localized Content

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
<xsl:output method="html" encoding="utf-8" indent="yes" />

<xsl:template match="/
<xsl:text disable-output-escaping=yes>&lt;!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
 
Back
Top