How to convert ASCII char values example 'a'
to its eqvelent hexa value 41
?
3 Answers
Convert to int then to hex
Convert.ToInt32('a').ToString("X");
a
is actually 61
, and A
is 41
Convert to int then to hex
Convert.ToInt32('a').ToString("X");
a
is actually 61
, and A
is 41