CodeUnits Procedure

Converts a string to a list of one-byte UTF-8 code units. To convert the list back into a string, use the StringFromCodeUnits function.
Warning: Correct usage of this function requires deep Unicode knowledge. Consider using the Characters function instead.
Declaration
function CodeUnits(input as String) as String

Parameters

Return value

String — A list of the UTF-8 code units in input.

Example

Code
dim x = CodeUnits("ABC")
print x(0)
print x(1)
print x(2)
Output
65
66
67