Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 2.27 KB

unicode-codepoints-from-string-function.md

File metadata and controls

70 lines (48 loc) · 2.27 KB
title description ms.reviewer ms.topic ms.date
unicode_codepoints_from_string()
Learn how to use the unicode_codepoints_from_string() function to return a dynamic array of the Unicode codepoints of the input string.
alexans
reference
02/27/2023

unicode_codepoints_from_string()

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)

[!INCLUDE syntax-conventions-note]

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

[!div class="nextstepaction"] Run the query

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

Output

arr
[9382, 9392, 9390, 9391, 9386]

[!div class="nextstepaction"] Run the query

print arr = unicode_codepoints_from_string("קוסטו - Kusto")

Output

arr
[1511, 1493, 1505, 1496, 1493, 32, 45, 32, 75, 117, 115, 116, 111]

[!div class="nextstepaction"] Run the query

print str = unicode_codepoints_to_string(unicode_codepoints_from_string("Kusto"))

Output

str
Kusto