How to actually query Chinese address in Googlemap API geocoding??
Posted
by Robert
on Stack Overflow
See other posts from Stack Overflow
or by Robert
Published on 2010-01-28T16:44:45Z
Indexed on
2010/03/21
12:01 UTC
Read the original article
Hit count: 512
I'm following the demo code from article of phpsqlgeocode.html
In the db, I inserted some Chinese addresses, which is utf8 encode. I found after urlencode the Chinese address, the output of the address will be wrong.Like this one:
Then output(can't query from php, it have to test as browser url link), 200,5,59.3266963,18.2733433
Whose address is actually located in Taichung Taiwan, but turn out to in Sweden Europe. But when I paste the Chinese address(such as ???????? ?131?56?58?60?) in the url, the result turn out to be fine!!!
So my question is how to make sure it send out the original Chiness address?? how to prevent urlencode()??? I found take urlencode() away not change anything.
(I've change the MAPS_HOST from maps.google.com to maps.google.com.tw.) (I'm sure my key is right, and other English address geocoding are fine.)
Thanks!!
© Stack Overflow or respective owner