111,129
社区成员
发帖
与我相关
我的任务
分享select * from tb where iname = '中文'select * from tb where iname = N'中文' 不行
string encode = string.Empty;
byte[] bytes = System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(str);
try
{
encode = System.Text.Encoding.Default.GetString(bytes);
}
catch
{
encode = str;
}
return encode;