Need to convert string/char to ascii values.

Posted by SA on Stack Overflow See other posts from Stack Overflow or by SA
Published on 2010-04-24T02:30:23Z Indexed on 2010/04/24 2:33 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

Hi,

I need to convert char to hex values. Refer to the Ascii table but I have a few examples listed below:

  • char 1 = 31 2 = 32 3 = 33 4 = 34 5 = 35 A = 41 a = 61 etc

Therefore string str = "12345"; Need to get the converted str = "3132333435"

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET