Forums Register Login

JBuilder -->SQL Server2000 Chinese display problem, HELP NEEDED!

+Pie Number of slices to send: Send
Thanks for your concern
Enviorment: Windows2000 SP2 Chinese and SQL Server2000 SP2 Chinese, JBuilder 6.0.482 English.
I'm using MS SQL Server2000 JDBC Driver to connect to the database, no problem, when I using following code to get data from the table, when displaying English no problem, but Chinese can not display properly.
Need you help.
public void getValue() {
try {
if(rs.next()){
String strName=(String)rs.getString("Name");
this.tfName.setText(strName);
}
else{
this.btnNext.setEnabled(false);
}
}catch (Exception e){
e.printStackTrace();
}
}
The column "Name" in my SQL Server table is "varchar" .
Thanks again

fengzixuan Zheng
+Pie Number of slices to send: Send
I resolve this problem now, by change the data type to nvarchar.
Thank you all the way.
If you look closely at this tiny ad, you will see five bicycles and a naked woman:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 900 times.
Similar Threads
help! perhaps the problems of configuration of JDBC on Weblogic
jforum 2.1.7 b3 error with sql server 2000 script
Encoding ISO8859
Update problem. Please come in
Resultset TYPE_SCROLL_INSENSITIVE
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 10:13:23.