Subject: | Croatian (language=hr) not supported |
... but the Google API supports it, try
lwp-request -m GET 'http://www.google.com/ig/api?weather=zagreb&hl=hr'
Maybe it's best to get rid of the language -> encoding hash in the
module completely. The encoding is already given in the HTTP response
--- better to get it from there:
$ lwp-request -m HEAD
'http://www.google.com/ig/api?weather=zagreb&hl=ja' | grep Content-Type:
Content-Type: text/xml; charset=Shift_JIS
$ lwp-request -m HEAD
'http://www.google.com/ig/api?weather=zagreb&hl=de' | grep Content-Type:
Content-Type: text/xml; charset=ISO-8859-1
$ lwp-request -m HEAD
'http://www.google.com/ig/api?weather=zagreb&hl=hr' | grep Content-Type:
Content-Type: text/xml; charset=ISO-8859-2
Regards,
Slaven