Input is not proper UTF-8, indicate encoding

367 views
Skip to first unread message

dmitriy

unread,
Mar 9, 2011, 10:03:14 AM3/9/11
to AdWords API Forum
Hi.
I have next exception:


exception 'DOMException' with message 'DOMDocument::loadXML(): Input
is not proper UTF-8, indicate encoding !
Bytes: 0xA0 0x3C 0x2F 0x6E in Entity, line: 2' in ../includes/lib/
Google/Api/Ads/Common/Util/XmlUtils.php:81
Stack trace:
#0 [internal function]: HandleXmlError(2, 'DOMDocument::lo...', '',
44, Array)
#1 ../includes/lib/Google/Api/Ads/Common/Util/XmlUtils.php(44):
DOMDocument->loadXML('<?xml version="...', 1038)
#2 ../includes/lib/Google/Api/Ads/Common/Util/
SoapRequestXmlFixer.php(71): XmlUtils::GetDomFromXml('<?xml
version="...')
#3 ../includes/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php(376):
SoapRequestXmlFixer->FixXml('<?xml version="...', Array)
#4 ../includes/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php(157):
AdsSoapClient->PrepareRequest('<?xml version="...', Array)
#5 ../includes/lib/Google/Api/Ads/AdWords/Lib/
AdWordsSoapClient.php(71): AdsSoapClient->__doRequest('<?xml
version="...', 'https://adwords...', '', 1)
#6 [internal function]: AdWordsSoapClient->__doRequest('<?xml
version="...', 'https://adwords...', '', 1, 0)
#7 ../includes/lib/Google/Api/Ads/Common/Lib/AdsSoapClient.php(179):
SoapClient->__soapCall('get', Array, NULL, Array, Array)
#8 ../includes/lib/Google/Api/Ads/AdWords/v201008/o/
TargetingIdeaService.php(7320): AdsSoapClient->__soapCall('get',
Array)

Data for making request stored in table with latin1 charset and as I
know, it should be utf-8 compatible.
Can you help me resolve the problem?

AdWords API Advisor

unread,
Mar 11, 2011, 5:47:01 AM3/11/11
to adwor...@googlegroups.com
Hi,

Could you post an issue at http://code.google.com/p/google-api-adwords-php/issues/list and ping this thread? I'll ask the library owner to take a look at it.

Cheers,
Anash P. Oommen,
AdWords API Advisor.
Reply all
Reply to author
Forward
0 new messages