ServiceNow Special Character Handling
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 09:09 AM
Hello all,
Would anyone happen to know why ServiceNow handles special characters like Eszette like the image attached?
Labels:
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2022 09:28 AM
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.***