all groups > c# > march 2005 >
You're in the

c#

group:

How to Convert a Chinese Character to HEX



How to Convert a Chinese Character to HEX sengkok
3/14/2005 11:43:02 PM
c#: Hi ,
how can iconvert the chinese character (unicode) to HEX value ? is that i
Re: How to Convert a Chinese Character to HEX Marcin GrzÄâ„¢bski
3/15/2005 2:19:51 PM
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

[quoted text, click to view]
AddThis Social Bookmark Button