欢迎加我的QQ群:193522571,一起来讨论、交流!

汉字转16进制ASCII码

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            byte[] b = ASCIIEncoding.Default.GetBytes("");
            foreach (var s in b)
            {
                Console.WriteLine(Convert.ToString(s,16));
            }
            Console.ReadLine();
        }
    }
}

 

posted @ 2014-08-03 11:15  swtool  阅读(579)  评论(0)    收藏  举报
欢迎加我的QQ群:193522571,一起来讨论、交流!