Hi,
The strings should be encoded in UTF-8. It's quite possible I'm missing
something here, but if you already have the reportCampaignName String
below, why do you need to convert it to a new String in another CharSet?
Couldn't you just use reportCampaignName directly? I just ran a quick
test of reading the response input stream and the decoding worked as
expected.
Thanks,
Josh, AdWords API Team
On Tuesday, March 11, 2014 1:07:43 AM UTC-4, assaf wrote:
>
> Hi,
>
> This may be a little basic but it is a first time that I actually need
> strings (names) from my reports and not numeric statistics..
> I generate SEARCH_QUERY_PERFORMANCE_REPORT successfully.
>
> I am trying to read the String name fields
> (CampaignName,KeywordTextMatchingQuery etc.) directly from the InputStream
> (I do this fine in other reports).
> I can't encode the strings properly to hebrew - I tried several options -
> but none gave proper chars (only strange chars , not '???').
>
> String campaignName1 = StringUtil.toUTF(reportCampaignName);
> String campaignName2 = new
> String(reportCampaignName.getBytes("ISO-8859-1"),"UTF-8");
> String campaignName3 = new
> String(reportCampaignName.getBytes("ISO-8859-1"),"WINDOWS-1255");
>
> Any idea how to convert it properly?
>
> Thanks.
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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
---
You received this message because you are subscribed to the Google Groups
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.