GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Question about quality of data  XML
Forum Index -> General
Author Message
SATCHEL



Joined: 22/10/2007 19:09:06
Messages: 3
Offline

Hello, great service keep it up! My question is related to the data itself.

I noted, for instance, in Hawaii there are strange looking entries inserted like this,

Kahalu‘u Landing
Kahekapō‘ele‘ele Valley

Does anyone else see this? Are those special characters supposed to be escaped characters or something special? If so, can someone pls. explain how to properly print/decipher ?

Thank you in advance for assistance. Have a good day.
marc



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

Hi

The data is in UTF8 encoding. Make sure you configure your database with the same encoding when loading the dump files.

Cheers

Marc

[WWW]
SATCHEL



Joined: 22/10/2007 19:09:06
Messages: 3
Offline

Ah very good, that makes sense.... I thought there was some sort of encoding going on. Ok, I setup my DB under this UTF8.

I am using this to decode the string, but still getting funny results:

<?php
$incoming_utf8 = "Kahekapō‘ele‘ele Valley";
$decoded_string = utf8_decode ($incoming_utf8);
echo $decoded_string;

?>

In this case, I get back 'Kah?n?li‘i Valley'. There seems to be some other formulations of this PHP to un-encode, ... but they are all pretty glitchy. Can you suggest what I might be doing wrong?

Thank you so much! You are very helpful. :-)

Alexey



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

SATCHEL
Do you use database (which one?) or web service?
SATCHEL



Joined: 22/10/2007 19:09:06
Messages: 3
Offline

Actually, I followed the helpful tips & instructions from this post, and now everything works fine. Very good!

http://forum.geonames.org/gforum/posts/list/615.page
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team