1
我在我的ASP.Net页面中使用天气API。在ASP.Net中的Google Weather API
如果我将语言(hl)添加到查询中,我将得到此错误: “给定编码中的字符无效,第1行,第526位”。
它没有语言的get参数,但我想要本地化输出。
这里是我的代码在第二行错误:
XmlDocument doc = new XmlDocument();
doc.Load("http://www.google.com/ig/api?hl=de&weather=" + location);
这个工程:
XmlDocument doc = new XmlDocument();
doc.Load("http://www.google.com/ig/api?weather=" + location);
任何想法?
**的谷歌API的天气是在2012关闭** - > http://stackoverflow.com/questions/12145820/google-weather-api-gone/35943521 – 2016-03-11 15:55:25