string strcode = "汉字汉字汉字"; byte[] buffer = Encoding.UTF8.GetBytes(strcode); string msg = Encoding.UTF8.GetString(buffer, 0, buffer.Length);