关于中文编码问题,请教!!
为什么我在IE地址栏中输入:
http://weather.news.sina.com.cn/cgi-bin/figureWeather/simpleSearch.cgi?city=%B1%B1%BE%A9
和输入
http://weather.news.sina.com.cn/cgi-bin/figureWeather/simpleSearch.cgi?city=北京
效果一样,但是在
System.Net.WebClient Client = new WebClient();
string t=@"http://weather.news.sina.com.cn/cgi-bin/figureWeather/simpleSearch.cgi?city=%B3%A4%B4%BA";
Stream strm = Client.OpenRead(t);
StreamReader sr = new StreamReader(strm);
却不一样哪?
是不是string是ANSI编码的,而不是UNICODE