就是将如 “浠婂ぉ” 转换成正常中文
(java中有这中方法,asp.net中应该也行怎么解决呢???)
==
请楼主应该不要打这么多问号,谢谢
------解决方案--------------------------------------------------------
对,应该没错我刚才试了UTF-8是“今天”
GB-2312是”浠婂ぉ“
------解决方案--------------------------------------------------------
string input = "浠婂ぉ";
byte[] bs = System.Text.Encoding.GetEncoding("GB2312").GetBytes(input);
System.Text.UTF8Encoding converter = new System.Text.UTF8Encoding();
string result = converter.GetString(bs);
------解决方案--------------------------------------------------------
using System.Text;
string str1="浠婂ぉ";
Encoding e1 = Encoding.UTF8;
Encoding e2 = Encoding.GetEncoding("gb2312");
string str2 = e2.GetString(Encoding.Convert(e1,e2,e1.GetBytes(str1)));