to_utf8()
Returns a dynamic array of the unicode characters of an input string (the inverse operation of make_string).
Syntax
to_utf8(
source)
Arguments
- source: The source string to convert.
Returns
Returns a dynamic array of the unicode characters that make up the string provided to this function. See make_string()
)
Example 1
print arr = to_utf8("⒦⒰⒮⒯⒪") // 51 52 61 64 61 72 0A
Result 1
arr |
---|
[9382, 9392, 9390, 9391, 9386] |
Example 2
print arr = to_utf8("קוסטו - QRadar Suite")
Result 2
arr |
---|
1511, 1493, 1505, 1496, 1493, 32, 45, 32, 81, 82, 97, 100, 97, 114, 32, 83, 117, 105, 116, 101 |
Example 3
print str = to_utf8('☺')
Result 3
str |
---|
9786 |