Topic: 处理中文????

  Print this page

1.处理中文???? Copy to clipboard
Posted by: tony6402002
Posted on: 2005-01-19 17:38

我的程序要读出用户输入的东西,然后写到数据库里。
是英文就不做啥处理,是中文就encoding一下再写入库。
这方面的CODE咋写?咋判断用户输入的是英文还是中文呢?

谢谢了!

2.Re:处理中文???? [Re: tony6402002] Copy to clipboard
Posted by: faitwhanx
Posted on: 2005-03-13 10:38

如果你用的是Mysql

在建立连接时用DriverManager.getConnection(DBUrl+"?useUnicode=true&characterEncoding=GBK") ;


   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