XSLT Transform of Localized Content
-
Monday, October 08, 2012 8:34 PM
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:
<?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'><!DOCTYPE html></xsl:text>
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
All Replies
-
Tuesday, October 09, 2012 3:31 PMCan you tell us more details on how you transform the XML (i.e. which XSLT processor you use, how you use its API, whether you transform to a file or a string, and how you load the transformation result into a which browser) when you see the question marks?
MVP Data Platform Development My blog

