简体   繁体   English

Windows Phone RSS Windows-1250编码

[英]Windows Phone RSS Windows-1250 encoding

I'm working on windows phone project, which reads data from rss. 我正在研究Windows Phone项目,该项目从rss读取数据。 This RSS is encoded in windows-1250 and when displaying in app, i get ??? 此RSS编码在Windows-1250中,在应用中显示时,我得到??? characters instead of š,č etc... I've been searching for solution...no luck...please help 字符,而不是š,č等...我一直在寻找解决方案...没有运气...请帮助

In case you're using a WebClient to download the RSS then you can specify the encoding to use when downloading the data. 如果您使用WebClient下载RSS,则可以指定下载数据时使用的编码。 In your case you can specify UTF8 . 您可以指定UTF8

WebClient client = new Webclient();
client.Encoding = Encoding.UTF8;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM