GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Two questions about languages  XML
Forum Index -> General
Author Message
Alexey



Joined: 19/08/2007 20:31:10
Messages: 24
Offline

Hello,

I need some help with languages.

I wonder how to import geonames dump into MySQL, so alternames table could have correct information. I've done as it described in FAQ, my table is UTF-8, but I can see difference in geonames service result and my MySQL database query (geonameid 2998286):

Geonames webservice (correct):
87000,87100,87280,Augustoritum,Limages,Limoges,Limogo,Limog·es,Limotges,Limoĝo,Limòtges,Llemotges,Λιμόζ,Лимож,לימוז',لیموژ,लिमोज,リモージュ,里蒙

My MySQL query (not correct):
87000,87100,87280,Augustoritum,Limages,Limoges,Limogo,Limog·es,Limotges,Limoĝo,Limòtges,Llemotges,Λιμόζ,Лимож,לימוז',لیموژ,लिमोज,リモージュ,里蒙

Another question is how can I extract name of the city in some specific language? For example, I need name of geonameid 2998286 in Russian. How MySQL query will look like?
marc



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

Hi Alexey

It looks like an encoding problem. The GeoNames dump files are encoded in UTF8. You should use the same encoding.

There is also a file alternatenames.txt in the dump directory. It gives you the name of the place with the ISO language code. For Limoges it will be Лимож with the languge code 'ru'.

Cheers

Marc

[WWW]
Alexey



Joined: 19/08/2007 20:31:10
Messages: 24
Offline

marc wrote:
Hi Alexey

It looks like an encoding problem. The GeoNames dump files are encoded in UTF8. You should use the same encoding.

There is also a file alternatenames.txt in the dump directory. It gives you the name of the place with the ISO language code. For Limoges it will be Лимож with the languge code 'ru'.

Cheers

Marc 

Thanks Marc.

I will try to import alternatenames.txt in UTF8.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team