Java cannot retrieve Unicode (Lithuanian) letters from Access via JDBC-ODBC

后端 未结 3 1326
长情又很酷
长情又很酷 2021-01-22 19:15

i have DB where some names are written with Lithuanian letters, but when I try to get them using java it ignores Lithuanian letters

    DbConnection();
    zadan         


        
3条回答
  •  别那么骄傲
    2021-01-22 19:59

    Try to use this "Windows-1257" instead of UTF-8, this is for Baltic region.

    java.util.Properties prop = new java.util.Properties();
    prop.put("charSet", "Windows-1257");
    

提交回复
热议问题