Loading

C#中文乱码转换

string text="中文";
string keyword;
byte[] buffer= Encoding.UTF8.GetBytes(text);
keyword=Encoding.GetEncoding("GB2312").GetString(buffer);

posted @ 2013-10-10 10:57  GerryGe  阅读(16177)  评论(0编辑  收藏  举报