I want to print \u0070\u0075\u0062 as output of this program, how can I do this in Java.
public class ankit {
public static void main(String[]args){
String s="\u0070\u0075\u0062";
System.out.println(s);
}
}
it gives me "pub" as output
actually i am sending it to a database and if there is unicode for new line charcter "\n" my bulk import to mySQL is not proper. so I want to store the string as unicode encoded when writing to mysql
i dont want to convert unicode for "\n" to actual newline while writing into db