How to Convert a Chinese Character to HEX

G

Guest

Hi ,
how can iconvert the chinese character (unicode) to HEX value ? is that i
need to convert it to ASCII then convert to Hex ?
 
G

Guest

Hi,

Do you mean "Hex" as "Hexadecimal" number format?
If so, then you can do that:

char chr; // your unicode character
string chrAsHex=((int) chr).ToString("x");

HTH
Marcin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top