Click here to Skip to main content
16,013,548 members
Home / Discussions / C#
   

C#

 
Questionworking with webservices in .net Pin
prasadbuddhika6-Aug-09 17:12
prasadbuddhika6-Aug-09 17:12 
AnswerRe: working with webservices in .net Pin
N a v a n e e t h6-Aug-09 17:47
N a v a n e e t h6-Aug-09 17:47 
GeneralRe: working with webservices in .net Pin
prasadbuddhika6-Aug-09 19:27
prasadbuddhika6-Aug-09 19:27 
GeneralRe: working with webservices in .net Pin
N a v a n e e t h6-Aug-09 22:26
N a v a n e e t h6-Aug-09 22:26 
QuestionSend SMS /MMS to mobile phone from FTP server Pin
pearllyn6-Aug-09 15:46
pearllyn6-Aug-09 15:46 
AnswerRe: Send SMS /MMS to mobile phone from FTP server Pin
Spacix One6-Aug-09 17:28
Spacix One6-Aug-09 17:28 
AnswerRe: Send SMS /MMS to mobile phone from FTP server Pin
Blue_Boy7-Aug-09 3:41
Blue_Boy7-Aug-09 3:41 
QuestionSaving RSS feed in "utf-8" format. Pin
dbhalla_in6-Aug-09 14:29
dbhalla_in6-Aug-09 14:29 
I am trying to create an application in C# which will extract and save RSS feeds onto the D drive. I am using the following C# code to save the file on the disk


rssReader = new XmlTextReader(FeedAddress.Text);
rssDoc = new XmlDocument();
//Load the XML contents into a XMLDocument
rssDoc.Load(rssReader);
rssDoc.Save("D://text.xml");

Everything works wells and the file is saved in the "utf-8" format if the extension of the link is XML (e.g http://msdn.microsoft.com/rss.xml). The problem comes when I try to save a feed with .rss extension (e.g http://orangecounty.craigslist.org/apa/index.rss), instead of saving the feed in "utf-8" format it saves the feed in "ISO-8859-1" format.

Moreover, when I try to save the feed with .rss extension using the Save As option of the Internet Explorer it saves the feed in "utf-8" format but when I use the C# code to save the same feed it saves it in the "ISO-8859-1" format.

Is there any way to save the feed with .rss extension in "utf-8" format instead of "ISO-8859-1" format?

Thanks
AnswerRe: Saving RSS feed in "utf-8" format. Pin
Luc Pattyn6-Aug-09 14:45
sitebuilderLuc Pattyn6-Aug-09 14:45 
QuestionRelative URLs in Code-Behind Pin
Colin Pace6-Aug-09 10:52
Colin Pace6-Aug-09 10:52 
AnswerRe: Relative URLs in Code-Behind Pin
Adam R Harris6-Aug-09 11:07
Adam R Harris6-Aug-09 11:07 
QuestionC# Dataset bind to DataGridView update tabel in SQL Server 2005 DB Pin
Wheels0126-Aug-09 9:42
Wheels0126-Aug-09 9:42 
AnswerRe: C# Dataset bind to DataGridView update tabel in SQL Server 2005 DB Pin
Adam R Harris6-Aug-09 9:58
Adam R Harris6-Aug-09 9:58 
AnswerRe: C# Dataset bind to DataGridView update tabel in SQL Server 2005 DB Pin
Wheels01210-Aug-09 7:10
Wheels01210-Aug-09 7:10 
Question"Screenshot" from handle? Pin
dandy726-Aug-09 9:33
dandy726-Aug-09 9:33 
AnswerRe: "Screenshot" from handle? Pin
pelnor7-Aug-09 4:25
pelnor7-Aug-09 4:25 
GeneralRe: "Screenshot" from handle? Pin
dandy728-Aug-09 4:28
dandy728-Aug-09 4:28 
QuestionCalling functions and methods in a child form Pin
alias bill6-Aug-09 9:24
alias bill6-Aug-09 9:24 
AnswerRe: Calling functions and methods in a child form Pin
OriginalGriff6-Aug-09 10:20
mveOriginalGriff6-Aug-09 10:20 
AnswerRe: Calling functions and methods in a child form Pin
DaveyM696-Aug-09 10:54
professionalDaveyM696-Aug-09 10:54 
GeneralRe: Calling functions and methods in a child form Pin
alias bill6-Aug-09 12:02
alias bill6-Aug-09 12:02 
GeneralRe: Calling functions and methods in a child form Pin
DaveyM696-Aug-09 21:54
professionalDaveyM696-Aug-09 21:54 
AnswerRe: Calling functions and methods in a child form [modified] Pin
nelsonpaixao6-Aug-09 13:58
nelsonpaixao6-Aug-09 13:58 
QuestionUsing a Session variable in an UpdateCommand Pin
JohnQuar16-Aug-09 9:17
JohnQuar16-Aug-09 9:17 
AnswerRe: Using a Session variable in an UpdateCommand [ Posted on Wrong Forum ] Pin
Abhijit Jana6-Aug-09 9:24
professionalAbhijit Jana6-Aug-09 9:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.