Guest User

Untitled

a guest
Jan 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2. mysql_query("SET NAMES utf8");
  3. header("Content-Type: text/html;charset=UTF-8");
  4.  
  5.  
  6. echo shell_exec('java -jar /home/path/path/path/my.jar');
  7.  
  8. ?>
  9.  
  10. Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/somedb?useUnicode=true&characterEncoding=UTF-8", "root", "pass");
  11.  
  12. while (resultSet2.next()) {
  13.  
  14.  
  15. title2 = new String(resultSet2.getString("title").getBytes("UTF-8"), "UTF-8");
  16. url2 = new String(resultSet2.getString("url").getBytes("UTF-8"), "UTF-8");
  17. id = new String(resultSet2.getString("id").getBytes("UTF-8"), "UTF-8");
  18. date = new String(resultSet2.getString("date").getBytes("UTF-8"), "UTF-8");
  19.  
  20. list.add(title2);
  21. list2.add(url2);
  22. list4.add(id);
  23. list5.add(date);
  24.  
  25.  
  26. }
  27.  
  28. title2 = resultSet2.getString("title")
Add Comment
Please, Sign In to add comment