Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
From two-bytes of a unicode character to its character code
#1
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).
#2
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
Code:
Copy      Help
str utf8
BSTR utf16
utf8="α" ;;UTF8, 2 bytes
utf16=utf8 ;;UTF16, 1 word. It is Unicode character code.
out utf16[0]
#3
Gintaras,

Many thanks for an extremely fast and precise reply.

Regards

Simos


Forum Jump:


Users browsing this thread: 1 Guest(s)