首页  编辑  

字符编码转换

Tags: /C#/字符串处理/   Date Created:

byte [] vBytes = Encoding . Convert( Encoding . UTF8,

        Encoding . GetEncoding( "GB2312" ), Encoding . UTF8 . GetBytes(S));

//or

byte [] vBytes = ASCIIEncoding . Default . GetBytes(mStr);