I'm using XmlTextWriter to create an RSS-compliant XML file.
The problem is that I get this error when trying to view the RSS feed in IE:
-------------------------------
Switch from current encoding to specified encoding not supported. Error
processing resource 'http://localhost/updatesrss/?p...
<?xml version="1.0" encoding="utf-16"?><rss version="2.0">...
-------------------------------
If I look at the response headers, it appears that it's actually being sent
as utf-8, and IE doesn't like the fact that it's being sent one way, but the
xml header says something different.
How do I fix this? In my codebehind, it appears that I *am* declaring it as
utf8:
Dim objX As New XmlTextWriter(Response.OutputStream, Encoding.UTF8)
Yet it keeps spitting out the xml with that incorect XML header.
-Darrel
--
================================================== ===============
Win prizes searching google:
http://www.blingo.com/friends?ref=hM...nTqhv-2GE1FNtA