madhabkirank / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
0 stars 0 forks source link

Input is not proper UTF-8, indicate encoding #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
v201008
PHP Version 5.2.0-8+etch16

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 selector stored in table with latin1 charset.

Original issue reported on code.google.com by dmit...@sayu.co.uk on 11 Mar 2011 at 1:47

GoogleCodeExporter commented 8 years ago
The API only accepts the UTF-8 encoding, please ensure that you convert your 
strings to UTF-8 before passing off to the client library.

Original comment by api.ekol...@gmail.com on 23 Mar 2011 at 9:27