I am using simplexml_load_file to retrieve data from google maps...
simplexml_load_file fails if the returned xml contains spanish text; for example, see:
http://www.power-spar.com/EnerCalc2.0/latlonglookup2.php?address=&city=&province=&country=Spain
Google returns:
<kml>
−
<Response>
<name>,+,+,+Spain</name>
−
<Status>
<code>200</code>
<request>geocode</request>
</Status>
−
<Placemark id="p1">
<address>España</address>
−
<AddressDetails Accuracy="1">
−
<Country>
<CountryNameCode>ES</CountryNameCode>
</Country>
</AddressDetails>
−
<Point>
<coordinates>-3.749220,40.463667,0</coordinates>
</Point>
</Placemark>
</Response>
</kml>
simplexml_load_file fails on 'España'
I'm certain that this is an encoding issue... not sure how to overcome it... any help you can offer would be appreciated...