Hi All
I want to convert unicode Chinese character to hex value. I can use the following to convert english to hex value.
put charToNum("P") into tNum
answer baseConvert(tNum,10,16) ; return 70
If I use a Chinese character "中" in the above it will return "3F". which is not correct. The correct value is "\u4E2D".
Please advise how can I make it!
Regards
Terry Ho
unicode to hexadecimal
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: unicode to hexadecimal
Ni hao Terry,
just guessing, but maybe using something like codepointtonum() etc. will do the job?
CHARTONUM() has been deprecated with the introduction of Unicode.
Best
Klaus
just guessing, but maybe using something like codepointtonum() etc. will do the job?
CHARTONUM() has been deprecated with the introduction of Unicode.
Best
Klaus
Re: unicode to hexadecimal
Hi Klaus,
Thanks your help. It is working.
Regards
Terry Ho
Thanks your help. It is working.
Regards
Terry Ho