Topic: 一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? |
Print this page |
1.一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? | Copy to clipboard |
Posted by: bluebangbang Posted on: 2004-04-23 12:01 |
2.Re:一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? [Re: bluebangbang] | Copy to clipboard |
Posted by: simonyxd Posted on: 2004-04-23 16:37 转码, 用String newstring = new String(oldstring.getBytes(),charsetName); |
3.Re:一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? [Re: bluebangbang] | Copy to clipboard |
Posted by: jameszhang Posted on: 2004-04-23 16:42 配置你数据库 |
4.Re:一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? [Re: bluebangbang] | Copy to clipboard |
Posted by: dearmeiw Posted on: 2004-04-24 10:14 数据库用中文编码,省去一切麻烦了 |
5.Re:一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? [Re: bluebangbang] | Copy to clipboard |
Posted by: dingjunming Posted on: 2004-04-29 01:38 楼上正解. 难怪我重来碰不到这样的问题 |
6.Re:一个String值是中文,往数据库写怎么是乱码?要怎样处理呀??? [Re: bluebangbang] | Copy to clipboard |
Posted by: Lomone Posted on: 2004-04-29 22:04 要看你的数据库在安装的时候是不是选用中文的了!! 如果是就应该是没有问题的!!!! |
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 |