Guest User

Untitled

a guest
Sep 11th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. eclipse server application doesn't support arabic chars
  2. String unicode = "?useUnicode=yes&characterEncoding=UTF-8";
  3. Class.forName("com.mysql.jdbc.Driver");
  4. con = (Connection) DriverManager.getConnection(
  5. "jdbc:mysql://localhost:3306/ams-competation" + unicode,
  6. username, password);
  7.  
  8. if(q.getFirstChoice().equals("بيرلو"))
  9. System.out.println("dddd");
  10.  
  11. PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
  12. out.println(“some-utf8-string”);
Add Comment
Please, Sign In to add comment