Should work in XML, JSPX.
(Perhaps JSP and HTML too?)
I assume this would require recognizing the encoding of the XML document / JSPX page.
For at least ISO 8859-1
it would be nice to see 'official' symbol names (like 'non-breaking space' ) in addition to the rendered character.