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.
Returns a dynamic array of the Unicode codepoints of the input string. This function is the inverse operation of unicode_codepoints_to_string() function.
Syntax
unicode_codepoints_from_string(value)
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 |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.