I can't read Arabic characters in Sybase adaptive server 12.5 with Java where powerbuilder 10.5 can read the characters without changing the charset.
The default character set in the server is: cp850 multilingual and i tried also to enable unicode conversion using: sp_configure "enable unicode conversions",1

I used the driver connections jtds and sybase official driver for java:

cn = DriverManager.getConnection("jdbc:jtds:sybase://;databaseName=aaa;characterEncoding=cp12 56;useUnicode=true", "sa", "");
and tried

cn = DriverManager.getConnection("jdbc:sybase:Tds:192.1 68.1.5:5000/servername;databaseName=aaa;characterEncoding=cp85 0", "sa", "");
and also tried UTF8 in character encoding but those doesn't affect anything

but inside my class when i tried this method

public static String arEncoding(String s) throws UnsupportedEncodingException {

if(s!=null ){

StringBuilder sb = new StringBuilder(new String(s.getBytes("UTF16"),"Cp1256").substring(3)) ;

for(int k=sb.length()-1; k>0; k--) {
if(!isEven(k)) { sb.deleteCharAt(k); }

return sb.toString();
return "";

public static boolean isEven(int m){
if((m%2)==0) return true;
else return false;
this method return the Arabic characters correctly but i can't insert arabic characters Please anyone can help me to use direct conversion.
also how could power builder recognize the arabic characters