ASCII
public void OnClick(string me)
{
byte[] data = Encoding.ASCII.GetBytes(me);
string result = string.Empty;
for (int i = 0; i < data.Length; i++)
{
result += Convert.ToString(data[i], 16);
}
byte[] buff = new byte[result.Length / 2];
int index = 0;
for (int i = 0; i < result.Length; i += 2)
{
buff[index] = Convert.ToByte(result.Substring(i, 2), 16);
++index;
}
string re = Encoding.ASCII.GetString(buff);
Debug.Log(result+"/"+re);
}