utf8-text <utf8> \ [ to <text> ] \ [ length <length> ] \ [ status <status> ] \ [ error-text <error text> ]Copied!
// UTF8 string set-string utf8_str = "\"Doc\"\n\t\b\f\r\t⇗⇘\t▷◮𝄞ᏫⲠш\n/\"()\t" // Convert UTF8 string to text utf8-text utf8_str status encstatus to text_text // This is the text expected (( expected_result @\"Doc\"\n\t\b\f\r\t\u21d7\u21d8\t\u25b7\u25ee\ud834\udd1e\u13eb\u2ca0\u0448\n/\"()\t )) // Make sure conversion was okay, decs is the length of the result (encj string) if-true text_text equal expected_result and encstatus not-equal -1 @decode-text worked okay end-ifCopied!