GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Encoding issues...  XML
Forum Index -> General
Author Message
stuartdavenport



Joined: 16/04/2008 16:26:44
Messages: 20
Offline

Hi all,

I am having a little trouble with umlauts - I make requests to the Geonames service for Dusseldorf and it seems to be returning the following with a strange A and 1/4 character instead of an umlaut...

Example: http://img145.imageshack.us/img145/2269/encodingissue.jpg

Does anyone know why its not returning simply as an umlaut? What encoding is it current at?

I should note however, when I go directly to the link via Internet Explorer the characters do render correctly...

http://ws.geonames.org/search?q=dusseldorf&country=DE&maxRows=10&lang=en&style=full

I am currently running a webservice that sits infront of the Geonames service and umlauts stored in my database are fine and return through the service as umlauts, whilst the Geonames service continues to send back these replacements...

Thanks
Stuart

Stu, UK
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

the webservice response is utf8 it can be changed with the parameter 'charset':

http://forum.geonames.org/gforum/posts/list/109.page

Regards

Marc

[WWW]
stuartdavenport



Joined: 16/04/2008 16:26:44
Messages: 20
Offline

Thanks Marc, thats worked great and fixed my problem!

To confirm I added the following parameter to my request;

charset=ISO8859-1 


Final requests looks like;

http://ws.geonames.org/search?q=dusseldorf&country=DE&maxRows=10&lang=en&style=full&charset=ISO8859-1 

Stu, UK
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team