編輯

共用方式為


unicode_codepoints_from_string()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Returns a dynamic array of the Unicode codepoints of the input string. This function is the inverse operation of unicode_codepoints_to_string() function.

Deprecated aliases: to_utf8()

Syntax

unicode_codepoints_from_string(value)

Learn more about syntax conventions.

Parameters

Name Type Required Description
value string ✔️ The source string to convert.

Returns

Returns a dynamic array of the Unicode codepoints of the characters that make up the string provided to this function. See unicode_codepoints_to_string())

Examples

print arr = unicode_codepoints_from_string("⒦⒰⒮⒯⒪")

Output

arr
[9382, 9392, 9390, 9391, 9386]
print arr = unicode_codepoints_from_string("קוסטו - Kusto")

Output

arr
[1511, 1493, 1505, 1496, 1493, 32, 45, 32, 75, 117, 115, 116, 111]
print str = unicode_codepoints_to_string(unicode_codepoints_from_string("Kusto"))

Output

str
Kusto