I have an XML document that I’m transforming using XSL and then spitting out directly into an HTML document (all server side).
Everything works OK functionally but special characters (specifically the © symbol — these are ads and many have © symbols) don’t show up right (IE shows ? and FF shows a diamond with a ? inside). Obviously something funky is going on encoding-wise.
The XML is in ISO-8859-1 encoding.
I tried adding <xsl:output omit-xml-declaration="yes" method="html" encoding="iso-8859-1"/> to my XSL file and <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1"> to my HEAD tag in the HTML.
I was thinking of running the XML through a template (XSL) that converted all special characters to HTML equivs (© to ©) but I was hoping I don’t have to go that route.
Any ideas?
I think your problem isn’t XSLT related. You probably are missing your page return encoding (you know, like
Response.ContentEncoding)You can’t easily convert
© to ©