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.***