Posts: 1,058
Threads: 367
Joined: Oct 2007
Function str s=UnicodeCharToString(i), found in QM heldp files, converts a unicode character code (integer) to string. I am wondering whether there exists a function to combine the two or three bytes of a unicode character to obtain the unicode character code (integer).
Posts: 11,948
Threads: 138
Joined: Dec 2002
Assign the string to a BSTR variable. This converts it from UTF-8 to UTF-16. Then get the first character of the BSTR variable.
Macro
str utf8
BSTR utf16
utf8="α" ;;UTF8, 2 bytes
utf16=utf8 ;;UTF16, 1 word. It is Unicode character code.
out utf16[0]
Posts: 1,058
Threads: 367
Joined: Oct 2007
Gintaras,
Many thanks for an extremely fast and precise reply.
Regards
Simos