SOLVED

Re: How come special characters become malformed when creating tokens via the API?

Go to solution
Edwin_Afable1
Level 2

How come special characters become malformed when creating tokens via the API?

Hello Marketo Community,

I've been experiencing issue around character encoding (my application encodes in UTF-8 prior to inserting into Marketo) with characters being lost.

I've tried to follow this example and even ran the exact call noted in the "support" doc:

Using Extended Character Sets in API Calls

// snippet of code that pushes the new token (swapped with the Marketo example as the value.)

// output expected: 'Hello émarketo' output seen: "Hello émarketo"

parsed = requestJSONPush({url:requestUrl,params:{method:'post',payload:'folderType=Program&name='+programData[n][1]+'&value='+'Hello+%C3%A9marketo'+'&type='+programData[n][3]+''}});

// end

encoding_error.png

Any guidance or help would be appreciated

Thanks,

Edwin

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How come special characters become malformed when creating tokens via the API?

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: How come special characters become malformed when creating tokens via the API?

Edwin_Afable1
Level 2

Re: How come special characters become malformed when creating tokens via the API?

Hi Sanford - I read through that many times, but reading through just once more made everything click. Thanks!