Hello Rick,

 I'm not an expert on how PHP handles UTF-8, but there does seem to be
a specific method that will convert a string into its UTF-8
representation:

  http://us3.php.net/utf8_encode

Have you tried running your $request_xml string through that
utf8_encode() method before passing it on to the AdWords API?

 I did just try an estimateKeywordList() request to the Sandbox with
"Akupunkturärzte" and after I made sure that everything was send as
proper UTF-8 it did go through. This was in Python, though.

Cheers,
-Jeff Posnick, AdWords API Team


On Jan 21, 10:54 pm, rickey <[email protected]> wrote:
> My request is something like this:
> <estimateKeywordList>
> <keywordRequests><text>Akupunkturärzte </text><maxCpc>100000</
> maxCpc><type>Broad</type></keywordRequests></estimateKeywordList>
> and my function is write in php, every file is UTF-8 encoded
> the function is something like:
> $estimates = $estimator_service->call('estimateKeywordList',
> $request_xml);
>
> and it is not possible to use something like <?xml version="1.0"
> encoding="UTF-8"?> in the request
> What else should i check.
>
> thanks a lot
> Best regards
> Rick
>
> On Jan 22, 11:41 am, rickey <[email protected]> wrote:
>
> > thanks for the reply
> > I checked all my related files which is UTF-8 encoded but when i used
> > the word contains non-english in sandbox
> > it still not working
> > Akupunkturärzte for example it works only if i remove the letter ä
> > from the word
> > Akupunkturärzte  is german word
> > best
> > Rick
>
> > On Jan 21, 11:41 pm, AdWords API Advisor
>
> > <[email protected]> wrote:
> > > Hello Rick,
>
> > >  Sure. Just make sure that the characters are properly UTF-8 encoded--
> > > that's the important thing, and the step which leads to the most
> > > issues. Handling UTF-8 encoding is specific to the language you're
> > > using and sometimes even the editor you use to enter the non-English
> > > characters. In some combinations of language and editor it should just
> > > work out of the box, and for others it will require a bit of Googling
> > > to find the correct pragmas or other options to use to enable UTF-8.
>
> > > Cheers,
> > > -Jeff Posnick, AdWords API Team
>
> > > On Jan 20, 9:32 pm, rickey <[email protected]> wrote:
>
> > > > Is it possible to use keywords in other language in sanbox, with some
> > > > special letters such as
> > > > "Akupunkturärzte"
>
> > > > Thanks a lot.
>
> > > > Rick
--~--~---------~--~----~------------~-------~--~----~
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