Can't insert arabic characters into oracle database
问题 I got problems while reading arabic characters from oracle in java using JDBC driver, the main problem was i couldn't find the proper character encoding to get the correct data , but i solved the problem manually using this method: public static String cleanORCLString(String s) throws UnsupportedEncodingException { byte[] bytes = s.getBytes("UTF16"); String x = new String(bytes, "Cp1256"); String finalS = x.substring(3); StringBuilder sb = new StringBuilder(finalS); for(int k = sb.length() -