111,119
社区成员
发帖
与我相关
我的任务
分享


string str;
str = dataGridView1.Rows[3].Cells[3].Value.ToString();
Encoding utf8 = Encoding.GetEncoding(850);
Encoding gb2312 = Encoding.GetEncoding("gb2312");//Encoding.Default ,936
byte[] temp = utf8.GetBytes(str);
byte[] temp1 = Encoding.Convert(utf8, gb2312, temp);
string result = gb2312.GetString(temp1);
MessageBox.Show(result);
