using System.Security.Cryptography;
public static void Main()
public static string charCodeAt(string character,int index)
return charcodeAt(character[index]+"");
public static string charcodeAt(string character)
for (int i = 0; i < character.Length; i++)
byte[] bytes = System.Text.Encoding.Unicode.GetBytes(character.Substring(i, 1));
string lowCode = System.Convert.ToString(bytes[1], 16);
string hightCode = System.Convert.ToString(bytes[0],16);
if (hightCode.Length == 1)
hightCode = "8" + hightCode;
coding += (hightCode + lowCode);