On Sep 9, 3:55 pm, shredder <[EMAIL PROTECTED]> wrote: > This url is the same the script would produce. If > I call it in the browser I get the result I want, if the script does > the same via simplexml_load_file it fails.
Yes: the data is produced and either passed to the browser for display or to the PHP script. The browser can display it; PHP is having difficulty loading into the $xml structure. Since the script works with American addresses, you must be running PHP5 and have simplexml_load_file working. What appears in the browser as <ThoroughfareName>Hans-Beimler-Straße 1</ThoroughfareName> is transmitted in the source as <ThoroughfareName>Hans-Beimler-Straße 1</ThoroughfareName> You may need to run the XML returned through htmlentities to convert ß into ß using something like the following. Note this does depend on fopen() being able to access external urls. $handle = fopen($url, "rb"); $text = stream_get_contents($handle); fclose($handle); $text = htmlentities($text,ENT_COMPAT,'UTF-8'); $xml = simplexml_load_string($text); Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
