Hi all,
How can I convert a unicode value to its relevant integer value and print it.
For Example:
When I enter 49(unicode), it's equivalent integer value 1 should be printed.
How can I achieve this?
Please help!!
Thanks in advace..
Covert from unicode to integer
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Oct 21, 2013, 10:49 AM EDT
For example:
for(int i = 48; i < 58; i++)
{
Console.Write((char)i);
}
produces output of: 0123456789
Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 21, 2013, 8:18 PM EDT
try following code
int charvalue = 49;
var original = Convert.ToInt16(((char)charvalue).ToString());
hope this will help you.