public static String toUNICODE(String s) 

{

StringBuilder sb=new StringBuilder();

for(int i=0;i<s.length();i++)

{

if(s.charAt(i)<=256)

{

sb.append("\\u00");

}

else

{

sb.append("\\u");

}

sb.append(Integer.toHexString(s.charAt(i)));

}

return sb.toString();

}