Thanks much!  I've corrected my coding to do the following:

        $buffer = file_get_contents($request_url) or die("url not loading");
        $buffer = str_replace("UTF-8", "ISO-8859-1", $buffer);
        $xml = simplexml_load_string ($buffer);

Probably should use "iconv" to actually convert the funny character,
but .. my only goal here was obtaining the coordinates.  You pointed
me in the right direction!

Norm



On Sep 13, 9:08 am, Fernando Torres <[email protected]> wrote:
> Hello, buddy
>
> I've had the same error. I do a trick to fix this issue. Take a look to my
> solution:
>
> ini_set("allow_url_fopen", 1); //função habilitada
>                 $buffer = 
> file_get_contents("http://maps.google.com/maps/geo?output=xml&sensor=false&key=abcdefg&q...";
> );
>                 $xmlDoc = new DOMDocument();
>                 $buffer = str_replace("UTF-8", "ISO-8859-1", $buffer);
>                 $xmlDoc->loadXML($buffer);
> //                $xmlDoc->load("json.txt");
>                 ini_set("allow_url_fopen", 0);
>                 $x = $xmlDoc->documentElement;
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to