I have Java application (using JDK 1.7) which is reading Paradox files (*.db). It works well with Latin characters. I am trying to make this application to display Cyrillic characters correctly, however constantly getting unredable results.
Original code to connect to database:
Class.forName(DB_DRIVER);
String dbUrl = "jdbc:odbc:Driver={Microsoft Paradox Driver (*.db )};DBQ=" + workingDb + ";READONLY=true";
return DriverManager.getConnection(dbUrl);
I've tried to pass additional properties while getting connection:
java.util.Properties prop = new java.util.Properties();
prop.put("charSet", "windows-1251");
return DriverManager.getConnection(dbUrl, prop);
however that didnt do anything. I've tried to specify charset as "UTF-8", but that didnt work as well.
Original code to read ResultSet looks like this:
String title = rs.getString(7)
but title is not readable. I've also tried to use rs.getBytes() and then pass results to new String and specify encoding in the constractor but that didnt work as well.
Does any one has any idea of what is missing.