Zaheer-Abbas / php-google-map-api

Automatically exported from code.google.com/p/php-google-map-api
0 stars 0 forks source link

geo address truncation on insert in to geocodecache table #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Check for the geo addres "Gülbağ Cad 2/A, İstanbul, Türkiye", which 
contains Turkish characters "ü,ğ,İ"
2. Google maps show the correct location 
3. The geocodecache table stores the lng, lat and query values, yet query is 
truncated to "q".

What is the expected output? What do you see instead?
The expected output is "gülbağ cad 2/a, istanbul, türkiye"

What version of the product are you using? On what operating system?
@version 3.0beta

Please provide any additional information below.
The geo address is converted to lowercase with the strtolower; however, this 
php function does not handle UTF-8 strings. The multibyte version mb_strtolower 
shoudl be used when inserting the address and checking the existance of the 
address.

Original issue reported on code.google.com by ferhat....@gmail.com on 7 Dec 2011 at 9:24