Can you let me know how to convert UTF-16(LE) encoded hexadecimal value to UTF-16(LE) string? (LE : little endian)
This is exactly same as {U+nnnn} in Autohotkey_L or 'BinaryToString("0xnnnn",2)' function in AutoIt.
(nnnn is hexadecimal value which is encoded as UTF-16 little endian)
But, there's only "SendInput" function in Autohotkey_L.
I don't want to send string to anywhere,
and I prefer to use Autohotkey basic(first) or Autohotkey_L(second), not AutoIt, if possible.
Actually, I'm gonna get a filename from Windows 7 registry.
But, this filename is written as REG_BINARY type
and encoded as UTF-16 little endian that Windows uses.
After getting a filename, I'll use this filename as following:
//---
RegRead, filename_hex, HKEY_CURRENT_USER, ...
filename := BinaryToUTF16String(filename_hex) ------ (0)
loop, read, %filename% ------ (1)
...
fileappend, %text%, %filename% ------ (2)
...
---//
All I need is function 'BinaryToUTF16String' of part '(0)'.
Example of filename_hex: nnnnmmmmoooopppp....
Each four hexadecimal digits (nnnn, mmmm, oooo, pppp, ...) means one UTF-16 character seperately.
A length of filename_hex is four times of length of filename.
I've already seen this link
http://www.autohotkey.com/forum/topic58 ... t=hextobin
and tried 'Hex2Bin' and 'Utf8ToAnsi' function and 'StrGet' of Autohotkey_L but failed.
I think this is not a difficult problem,
but I'm just a beginner so I beg your help.