byte[] array1 = Encoding.UTF32.GetBytes(txtMarathiText.Text);
string unicodeString = Encoding.Unicode.GetString(array1);
System.Globalization.TextElementEnumerator enumerator =
System.Globalization.StringInfo.GetTextElementEnumerator(unicodeString);
StringBuilder sb = new StringBuilder();
while (enumerator.MoveNext())
{
string s = enumerator.GetTextElement();
int i = Char.ConvertToUtf32(s, 0);
sb.Append(string.Format("{0:X}", i.ToString()));
}
lblresult.Text = sb.ToString();
But its giving me
92E094000200932093E09080915020090609390947
instead of
092E094000200932093E090809150020090609390947
its not showing 0 at ist position and 0 after 150
I thing string.format() is wrong......can some one help me regarding this
Thank you