IS.ECS()

IS.ECS()

Top  Previous  Next

 

The IS.ECS() function tests whether a character string contains ECS characters.

 

 

Format

 

IS.ECS(string)

 

where

 

stringis the string to be tested.

 

 

The IS.ECS() function tests whether a character string contains characters outside the 8-bit set and hence requires an ECS mode file or an encoding such as UTF-8 to store it. The function returns True if any of the characters in string is outside the 8-bit set, otherwise it returns False.

 

Used on a non-ECS mode system, the IS.ECS() function always returns False.

 

 

Examples

 

S1 = 'ABC'

S2 = ECHAR(0x03A3)

DISPLAY IS.ECS(S1), IS.ECS(S2)

 
The above program fragment creates two strings, S1 containing the ASCII characters "ABC" and S2 containing the character with Unicode code point value U+03A3 (uppercase Greek Sigma). It then displays the result of testing each string with the IS.ECS() function,

0     1