Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

ServiceNow Special Character Handling

orlando3
Tera Expert

Hello all,

Would anyone happen to know why ServiceNow handles special characters like Eszette like the image attached?

1 REPLY 1

Yousaf
Giga Sage

Hi,

I am not sure about the reason. Maybe if you want to replace special chanracters with underscore _ you can use this regex validation on the field.

var string ='@@!H';
string = string.replace(/[\W_]/g, "_");
gs.print(string);


additional info : How to avoid untranslated characters � in your XML data

Mark Correct or Helpful if it helps.

 


***Mark Correct or Helpful if it helps.***