Hi all
I am having a problem with an error. The error is:

Warning: DOMDocument::save() [domdocument.save]: string is not in UTF-8 in
C:\wamp\www\xxx\xxx\xxx\xxx\get_all_campaigns.php on line 44

the line in question = $doc->save($xml_file_name);

'$xml_file_name' is created via an include, which gets all required data
from Google and outputs to xml.

$xml_file_name = "\\\\xxx\xxx\\" . $refrence . ".xml";

Have also tried:
$xml_file_name = "\\xxx\xxx\" . $refrence . ".xml";
$xml_file_name = "//xxx/xxx/" . $refrence . ".xml";
and also using single quotes

'$refrence' is obtained by doing the following:

$refrence_x =
preg_replace('/(........).*()/','$1',$account_info['descriptiveName']);
$refrencer_x = str_replace($special,"_",$refrence_x);
$refrence = $refrence_x;

(the above basically gets the 1st 8 characters of
'$account_info['descriptiveName']', then replaces any spaces with
underscores, then stores it in '$refrence')

The script, loops through about 30 accounts x 4 client manager accounts,
getting all of the required information and outputting to xml files.

This error only occurs once for one account manager and it is always the
same account, which makes me think that it is something to do with
'$account_info['descriptiveName']' as this is the only unique constant.

I have tried:

$xml_file_name = utf8_encode($xml_file_name);

But I still get the error. Has anyone else come across this or have any
ideas. The file saves no problem as fas as I can tell but I need to get rid
of the warning message, ideally without turning off error reporting

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" 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/adwords-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to