IBM Support

How do you identify non-Latin characters in your input string?

Question & Answer


Question

How do you identify non-Latin characters in your input string?

Answer

Contents

Question

How do you identify non-Latin characters in your input string?

Answer
Attached is a screen capture illustrating a sample event configuration.? You can use the containsNonLatinCodepoints function to identify if non-Latin characters are defined in your input string:

function containsNonLatinCodepoints(s)
{
return /[^\u0000-\u00ff]/.test(s);
}

Article Reference
00001442
Downloadable files:

Applies to version(s): 8.x

"

[{"Business Unit":{"code":"BU055","label":"Cognitive Applications"},"Product":{"code":"SSERNK","label":"Tealeaf Customer Experience"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
08 December 2018

UID

ibm10778303