to_utf8()

返回输入字符串的 unicode 字符的动态数组(make_string 的反运算)。

语法

to_utf8()

参数

  • source:要转换的源字符串。

返回

返回由 unicode 字符组成的动态数组,这些字符组成提供给此函数的字符串。 请参阅 make_string()

示例

print arr = to_utf8("⒦⒰⒮⒯⒪")
arr
[9382, 9392, 9390, 9391, 9386]
print arr = to_utf8("קוסטו - Kusto")
arr
[1511, 1493, 1505, 1496, 1493, 32, 45, 32, 75, 117, 115, 116, 111]
print str = make_string(to_utf8("Kusto"))
str
Kusto