locked
rss encoding problem RRS feed

  • Question

  • I' m bulding rss feeder like this, and it tells me "System does not support 'windows-1251' encoding.". Why is that?

    WebClient wc = new WebClient();
    ...
    public MainPage()
    {
        InitializeComponent();
    
        wc.OpenReadCompleted += new OpenReadCompletedEventHandler(wc_OpenReadCompleted);
        
        wc.OpenReadAsync(new Uri("http://www.kaldata.com/rosebud/rss.php"));
    }
    ...
    private void wc_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
    {
        SyndicationFeed feed;
    
        using (XmlReader reader = XmlReader.Create(e.Result))
        {
            feed = SyndicationFeed.Load(reader);
    				
    	AllList.ItemsSource = feed.Items;
        }
    }
    Tuesday, September 6, 2011 8:13 AM

Answers

  • Windows-1251 encoding is used to encode Cyrillic. Installing Cyrillic font may solve this error.

     

    Sunday, September 11, 2011 9:57 AM
  • You may need to try on Windows Phone OS 7.1, because Russian is not supported on 7.0.

    http://msdn.microsoft.com/en-us/library/hh202918(vreplacewithequalsignvs.92).aspx

    Thursday, September 15, 2011 4:38 AM

All replies

  • Anyone?

    Saturday, September 10, 2011 12:46 AM
  • Windows-1251 encoding is used to encode Cyrillic. Installing Cyrillic font may solve this error.

     

    Sunday, September 11, 2011 9:57 AM
  • It's a rss reader for WP7, so i don't know..

    Monday, September 12, 2011 1:44 PM
  • Any suggestions?

    Tuesday, September 13, 2011 3:10 AM
  • You may need to try on Windows Phone OS 7.1, because Russian is not supported on 7.0.

    http://msdn.microsoft.com/en-us/library/hh202918(vreplacewithequalsignvs.92).aspx

    Thursday, September 15, 2011 4:38 AM