来自于四明山的码农

 

2013年6月13日

.NET连接sybase乱码问题

摘要: .net从sybase中取数,变乱码的问题,网上很多人说,直接改服务器端的字符集,其实不用的。用.NET来转换。public static string ChangeCharset(string str, Encoding source, Encoding target) { string strChanged = ""; try { byte[] btSource = source.GetBytes(str); strChanged = target.GetString(btSource); } catch (Exception ex) { } return strCha 阅读全文

posted @ 2013-06-13 13:46 技术先锋 阅读(354) 评论(0) 推荐(0)

导航