NYCPHP Meetup

NYPHP.org

[nycphp-talk] Encoding help?

Joseph Crawford codebowl at gmail.com
Thu Feb 22 00:22:36 EST 2007


Guys i am trying to consume the Google maps API and when i pass it an
address in Montreal QC i get the follwoing error

*Warning*: SimpleXMLElement::__construct() [
function.SimpleXMLElement---construct<http://codebowl.homeip.net/eremaps/function.SimpleXMLElement---construct>]:
Entity: line 1: parser error : Input is not proper UTF-8, indicate encoding
! Bytes: 0xE9 0x61 0x6C 0x2C in *
/Applications/MAMP/htdocs/eremaps/import.php* on line *41

*the issue is that Google is returning this in the XML response

<LocalityName>Montréal</LocalityName>

I am guessing it is throwing something off with the SimpleXML object?  How
can i make it handle this?

Thanks,
-- 
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20070222/9468cac1/attachment.html>


More information about the talk mailing list