I was having issues before with my XML being sent to the browser as UTF16.
Via my XmlTextWriter, was able to fix this by explicitely setting the
encoding to UTF8:
Dim objX As New XmlTextWriter(Response.OutputStream, Encoding.UTF8)
That fixed the issue.
I'm not generating an XML file using a different method grabbing XML from a
DB and then reading it in as a stringreader, then transforming that via an
XSLT file.
Eventually, I do the XSLT transformation and response.write the result to
the browser.
The problem is that, once again, it's being set witn a UTF16 encoding.
I've tried to explicitely set the response encoding as such:
-------------
xslt.Transform(doc, xslArg, sw, Nothing)
Response.ContentType = "text/xml"
Response.ContentEncoding = System.Text.Encoding.UTF8
Response.Write(sw.ToString)
Response.End()
-------------
But I STILL get the UTF16 declaration in my XML:
<?xml version="1.0" encoding="utf-16"?><rss version="2.0">...
Why!?
-Darrel