Hi Freaks
Using decode-hex on string results in UTF-8 byte sequence
$1 = $encode("HEX","Ä") ; $1= "C384"
What I need is the unicode itself:
$1 = $encode("HEX","Ä","UNICODE") ; $1= "00C4"
Is there any workaround?
Okay, I could shift a few bits in "C384" , but this functions are also missing
The other workaround is to build a list
FOR v_I = 0 to 65335
putitem/id v_list,$string($concat("&#,v_I,";")),v_I
ENDFOR
and the do a lookup into this list.
But this is time consuming with UnifAce functions.
And the UnifAce kernel holds all necessary informations ....
BTW: The documentation for $encode says only "Hexadecimal encoding scheme."
No word, which codepage is in use. You have to read between the lines, that UnifAce internal uses UTF-8