数据库中提出的中文成了问号?? 忘了跟大家说了,我用的access2000中文版,里面的中文数据是我用access添加的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 new String(str.getBytes("ISO-8859-1"))就好~ 怎么实现基于jsp+oracle的网上投票程序,给小弟说说思想.http://expert.csdn.net/Expert/topic/3043/3043882.xml?temp=.8626673谢谢拉 写一个公共函数 public String toChinese(String p_strString) { String strSelect = ""; try { strSelect = new String(p_strString.getBytes("ISO8859-1"),"GBK"); } catch(Exception e) { System.out.println("component.publicMethod error begin ..."); System.out.println(e.toString()); System.out.println("component.publicMethod error end"); } return strSelect; }然后只要从数据库中读中文时调用就行了 二级联动查询问题 spring mail怎么实现不用用户名和密码发邮件 struts的标签怎么这么烦啊!!! 关于将中文数据写入数据库后的编码问题 win 7 32位旗舰版 iis 7.5 于tomcat 6整合一直不成功!谁整合成功过?请教! ResultSet.CONCUR_UPDATABLE,可更新结果集的问题,请高手指教 为什么? 请教数据库的一个简单问题 推荐算法 elasticsearch使用x-pack插件后,在项目中怎么配置es的用户名和密码啊 CLOB 大字段的读入问题 求连接oracle的bean代码,拜托啦!
{
String strSelect = "";
try
{
strSelect = new String(p_strString.getBytes("ISO8859-1"),"GBK");
}
catch(Exception e)
{
System.out.println("component.publicMethod error begin ...");
System.out.println(e.toString());
System.out.println("component.publicMethod error end");
}
return strSelect;
}
然后只要从数据库中读中文时调用就行了