Encoding origin = Encoding.UTF8;
Encoding targetEnco = Encoding.GetEncoding(936);
byte[] ansiBytes = origin.GetBytes(TextValueCN);
byte[] utf8Bytes = Encoding.Convert(origin, targetEnco, ansiBytes);
string cn = targetEnco.GetString(utf8Bytes);
失败了。
其实吧,用js的console.log("\u4e0b\u79fb\u6eda\u52a8")
就有了。但是,我这是在C# winform里面写的。
各位有完美的解决方案吗
http://blog.163.com/da7_1@126/blog/static/104072678201222211423621/