汉字转换成对应ASCII

private static byte[] hanziToHexByte(string hanzistring)
        {
            byte[] bytes = Encoding.Default.GetBytes(hanzistring);
            return bytes;
        }这个函数是将汉字转成ASCII码
posted @ 2013-10-25 08:55  shuenjian901  阅读(918)  评论(0编辑  收藏  举报