I don't see any Âs in the feed? Is it really the character you want to
replace?
cheers,
mortb
I tried both versions, but it still doesnt work. The thing
is that I am reading the following rss
(
http://pluralsight.com/blogs/dbox/Rss.aspx) and creating
the file with the description of the item. The file
contains only the description with the strange chars. Here
is my complete code:
Dim reader As New XmlTextReader
("
http://pluralsight.com/blogs/dbox/Rss.aspx")
Dim xmlDoc As New XmlDocument
xmlDoc.Load(reader)
Dim nodes As XmlNodeList = xmlDoc.SelectNodes
("/rss/channel/item")
dim i as integer = 0
For Each node As XmlNode In nodes
Try
strPost = node("description").InnerXml
Dim c as char = Chr(194)
strPost = strPost.Replace("Â", "XX")
Dim fp As StreamWriter
dim strfile as string = Server.MapPath("xml_news//")
strfile = strfile & i.tostring()
strfile = strfile & ".asp"
fp = File.CreateText(strfile)
fp.WriteLine("<p>" & Server.HtmlDecode(strPost)
& "</p>")
fp.close()
Catch ex As Exception
Response.Write(ex.Message() & "<br>")
End Try
i = i + 1
Next
Thanks for any help.