| Author |
Message |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 31/05/2008 16:54:38
|
gbrits
Joined: 11/03/2008 14:33:50
Messages: 14
Offline
|
Hi,
sometimes when I query the geonames search webservice I have a city-name with special characters, like ß (eszet), æ, ð (eth), ø, etc.
Can anyone tell me how these characters are converted so that I can succesfully query: http://ws.geonames.org/search?q=<namehere>
I managed to stip diacritics, but these special characters remain (are not transformed to their best ascii translation). If these names went through a lucene analyzer-chain (for example) I would really like to know which one.
Thanks in advance.
Britske
|
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 31/05/2008 17:07:57
|
marc
Joined: 08/12/2005 07:39:47
Messages: 4501
Offline
|
Britske
String parameters for the web services have to be utf8 url encoded. There is a faq entry on this topic:
http://forum.geonames.org/gforum/posts/list/8.page
The search on the server side is indeed using a customized lucene analyzer, but this should not affect you as a user of the service.
Marc
|
 |
|
|
 |
![[Post New]](/gforum/templates/default/images/icon_minipost_new.gif) 31/05/2008 19:16:00
|
gbrits
Joined: 11/03/2008 14:33:50
Messages: 14
Offline
|
thanks,
the trouble seemed to be in another spot (apache httpclient) which resulted in me painstakingly trying to reformat corrupted data to adhere to the correct input for the gwebservice. Hmm, there's a lesson to be learned in here somewhere.
britske
|
|
|
 |
|
|