The strLib.characterLen() system function returns the number of characters in a text expression, excluding any trailing spaces. In contrast, strLib.byteLen() returns the number of bytes rather than the number of characters. See the example later in this topic.
strLib.characterLen(source STRING in)
returns (result INT)
myUnicode5 UNICODE(5) = "ABC";
length INT;
length = strLib.byteLen(myUnicode5); // length=6
length = strLib.characterLen(myUnicode5); // length=3