-3

I am creating an java application which is used to read Hindi Data from ms access Database. please suggest me how to read Hindi text in java from ms access database.

code :

 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            String database ="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ="+db_path+";";  // setup the properties
            java.util.Properties prop = new java.util.Properties();
            prop.put("charSet", "UTF-8");
            prop.put("user", "");
            prop.put("password", "");



        Connection conn = DriverManager.getConnection(database, prop);
ena jordan
  • 23
  • 1
  • 7

1 Answers1

1

Java's JDBC-ODBC Bridge and the Access ODBC driver will not be able to retrieve the Unicode (Hindi) text from the database. However, the UCanAccess JDBC driver can do it. See:

Manipulating an Access database from Java without ODBC

Community
  • 1
  • 1
Gord Thompson
  • 116,920
  • 32
  • 215
  • 418