How come special characters become malformed when creating tokens via the API? | Community
Skip to main content
Edwin_Afable1
Level 2
October 12, 2018
Solved

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

  • October 12, 2018
  • 1 reply
  • 3064 views

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

Any guidance or help would be appreciated

Thanks,

Edwin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
October 12, 2018
Edwin_Afable1
Level 2
October 12, 2018

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