I am attempting to use ASP.NET to transform an XSL stylesheet and XML data document into XHTML.
The problem is that no matter what I try, HTML entities such as the non-breaking space   are displayed properly in the browser, but in the source code, they are munged and appear as ┬.
This wouldn't matter except Google also sees these munged source characters, causing our Google listings to look like garbage.
If I look at the source code in Firefox, it's fine. It's only a problem when viewed through Internet Explorer, Opera or Google.
Why is this and how do I solve it?
Here's an example input XSL:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="no" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
And here's the output source, copied from Internet Explorer View Source:
Anybody seen this and what did you do?