-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
generic, x86
-
generic, windows_nt
Name: sw25586 Date: 11/19/98
I use MS-SQL server and JDBC-ODBC brige to connect DB Server.
The problem is I can't get charaters after the charater, which unicode is \uAE00, from DB.
I used charSet properties.
My code is as below.
import java.util.*;
import java.sql.*;
public class DM {
public DM() {
}
public static void main(String[] art) {
Properties prop = new Properties();
prop.put("user", "sa");
prop.put("password","");
prop.put("charSet","KSC5601");
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch (Exception e) {
System.out.println("driver");
}
try {
Connection conn = DriverManager.getConnection("jdbc:odbc:Quote", prop);
ResultSet rs = conn.createStatement().executeQuery("select term from validterm");
String temp = "";
while (rs.next()) {
System.out.println(rs.getString("term"));
}
System.out.println("End");
System.in.read();
} catch (Exception e) {
e.printStackTrace();
}
System.exit(0);
}
}
I could read and convert when I use JDK 1.1.6.
(Review ID: 42234)
======================================================================
- duplicates
-
JDK-4106306 jdbc-odbc Bridge Chinese(Big5) Bugs
-
- Resolved
-