Hi,
How can I get the corresponding unicode character from a gived code number?
Greetings
Get a unicode char from a code
If you're compiling in unicode mode:
Code: Select all
Chr(Number)
The problem is that you can't represent all the unicode characters as ascii characters. If you don't care about that then you can still use Chr(UniCharacter.w).
To convert an entire string:
To convert an entire string:
Code: Select all
UniStr = AllocateMemory(10)
PokeW(@UniStr, 'A')
PokeW(@UniStr+2, 'B')
PokeW(@UniStr+4, 'C')
Debug PeekS(@UniStr, 3, #PB_Unicode)