Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Database/JDBC/SQL/JDO/Hibernate » DB2  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 用JDBC 连接DB2 数据库,由8859-1字符集怎样转换成GBK。
shark10





发贴: 1
积分: 0
于 2005-10-13 11:26 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
用JDBC 连接DB2 数据库,由8859-1字符集怎样转换成GBK。
我不想在程序中实现,如String(str.getBytes("ISO8859_1"),"gb2312")
帮帮我。



作者 Re:用JDBC 连接DB2 数据库,由8859-1字符集怎样转换成GBK。 [Re:shark10]
jerry010





发贴: 17
积分: 0
于 2005-10-15 15:51 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
数据库的所属字符集是在在安装db2的时候确定的,之后的要做的字符集转换只能通过程序来转换,通过jdbc接口只能改变访问方式。


作者 Re:用JDBC 连接DB2 数据库,由8859-1字符集怎样转换成GBK。 [Re:shark10]
hohaischooldays





发贴: 112
积分: 10
于 2006-01-04 11:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
DB2数据库的代码集是在create的时候指定,我个人认为最好使用UTF-8,因为各个区域都支持这个!如果你是BS结构的可以在web.xml中使用filter转换!



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923