汉字转换成对应ASCII

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