字符编码
摘要:
privatevoidbutton1_Click(objectsender,EventArgse){//汉字转为Unicode编码:stringhz=textBox1.Text.ToString();byte[]b=Encoding.Unicode.GetBytes**;stringo="";foreach(varxinb){o+=string.Format("{0:X2}",x)+"";}textBox2.Text=o;}privatevoidbutton2_Click(objectsender,EventArgse){//Unic 阅读全文
posted @ 2013-10-28 17:03 荣锋亮 阅读(225) 评论(0) 推荐(0) 编辑