unicode_codepoints_from_string()

Changer de service à l’aide de la liste déroulante Version . En savoir plus sur la navigation.
S’applique à : ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel

Retourne un tableau dynamique des points de code Unicode de la chaîne d’entrée. Cette fonction est l’opération inverse de unicode_codepoints_to_string() la fonction.

Alias déconseillés : to_utf8()

Syntaxe

unicode_codepoints_from_string( valeur)

En savoir plus sur les conventions de syntaxe.

Paramètres

Nom Type Requise Description
valeur string ✔️ Chaîne source à convertir.

Retours

Retourne un tableau dynamique des points de code Unicode des caractères qui composent la chaîne fournie à cette fonction. Voir unicode_codepoints_to_string())

Exemples

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

Sortie

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

Sortie

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"))

Sortie

str
Kusto