Sometimes I fear that for all the good reasons to use UTF-8, it has thrown us developers back into the times of ASCII/ANSI incompatibilities.
Make sure that *all* your connections use UTF-8. Use
mysql_set_charset( "utf8", $connection );
mysql_query("SET character_set_results = 'utf8', character_set_client = 'utf8', character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8'", $cconnection); bytes 0xF8 0x72 0x65 0x20 are not properly encoded UTF-8. Obviously they don't get converted on their way from the database to the XML file. Are you sure that their binary representation in the database is UTF? How did they get in the database?
MySQL's character set property can be misleading. MySQL does not automagically do character set conversions - only if client and server are announcing to use different character sets a conversion takes place. It's quite easy to be fooled to believe that your data are stored in UTF because the table or the field is defined using that character set. But if your store invalid UTF data in such a field, they stay invalid.
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
Are these text data which you want to display in a google map? The only mechanism I know of is the HTML code which can be assigned to each marker and which opens on mouse-over. But it's too long since I did that. - You will have to generate some javascript code in your PHP which contains the tlf content and then use the google map API.
Here a snippet from another project of mine where an XML file containing locations has been read and now the locations are set on the google map with some html code in the overlay window.
function addOnlyOneMarker(location) {
var myPoint = new GLatLng( location.latitude.value, ocation.longitude.value);
var myMarker = new GMarker(myPoint);
map.addOverlay(myMarker);
var msg = location.name.value
+ '<br/>' + location.street.value
+ '<br/>' + location.zipcode.value
+ ' ' + location.town.value
+ '<br/>' + location.phone1.value;
myMarker.setImage(IMAGE_green);
myMarker.bindInfoWindow(msg, {onOpenFn: infowindowopen } );
}
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254