issue removing special characters from json payload

Dave Edgar
Tera Contributor

I'm using payload builder to create a json payload but when i pull the payload into a script to sent it erroneous characters are being added - ï»¿

 

DaveEdgar_0-1668706137742.png

 

I've tried this

var pld = pl.replace('¿»ï', '');

 

or this but they won't remove

var pl = inputs.payload;
var pld = pl.replace('¿', '');
var pld2 = pld.replace('ï','');
var pld3 = pld2.replace('»','');

 

any ideas

 

Apparently this issue occurs due to building the payload builder in a version of chromium in the browser!

0 REPLIES 0