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