Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- mysql_query("SET NAMES utf8");
- header("Content-Type: text/html;charset=UTF-8");
- echo shell_exec('java -jar /home/path/path/path/my.jar');
- ?>
- Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/somedb?useUnicode=true&characterEncoding=UTF-8", "root", "pass");
- while (resultSet2.next()) {
- title2 = new String(resultSet2.getString("title").getBytes("UTF-8"), "UTF-8");
- url2 = new String(resultSet2.getString("url").getBytes("UTF-8"), "UTF-8");
- id = new String(resultSet2.getString("id").getBytes("UTF-8"), "UTF-8");
- date = new String(resultSet2.getString("date").getBytes("UTF-8"), "UTF-8");
- list.add(title2);
- list2.add(url2);
- list4.add(id);
- list5.add(date);
- }
- title2 = resultSet2.getString("title")
Add Comment
Please, Sign In to add comment