Closed ronaldtse closed 1 year ago
The text in the SVG is encoded as:
<text font-family="Calibri" fill="#595959" style="white-space:pre;" text-anchor="start" x="23.0000" y="27.0000" font-size="10.0000"><![CDATA[«ApplicationSchema»]]></text>
CDATA is expressly NOT meant to contain HTML escapes, so I need to work out how they got there to begin with.
This document is ISO 19115-3:
But I've already submitted this document to publication :wink:
This SVG is being generated by the emf2svg gem, which is encoding non-ascii characters as UTF-8:
<![CDATA[\xC2\xABApplicationSchema\xC2\xBB]]>
Escapes are respected in Presentation XML output, but not HTML output. That's just a matter of changing noko_html, the XML serialiser, to use UTF-8 instead of US-ASCII as its codeset; there is no particular reason to use HTML escapes in HTML any more.
Word rendering (good):
HTML rendering (escaped content):