Well, the subject says it all but I will explain a little further.
I have a database in MS SQL server 2005 that contains greek text. I have created a servlet that connects to that database using net.sourceforge.jtds.jdbc.Driver and receive some data with the following commands:
Connection con = DriverManager.getConnection(connectionUrl);
Statement sta = con.createStatement();
ResultSet res = sta.executeQuery("SELECT * FROM data");
After that, I want to use output.println to display the data to the page. The result is that greek characters are displayed as question marks (?). I tried changing the encoding charset of the browser, but no luck, so the problem must be to the page. I also tried displaying
new String( res.getBytes("text"), "ISO-8859-7");
instead of res.getString("text"), with different encodings (UTF-8, UTF-16), but still no luck !
What can I do to see the greek characters ???
TIA !