Hi all,
I have a simple servlet that retrieves a string from the database via jdbc.
The database is sybase and its default encoding is utf-8. I run tomcat
with -Dfile.encoding=iso-8859-7 option. In the servlet I do a
System.out.println() for the string and on the console I get the correct
greek symbols. But when I send the string via the response object I get
trash in the browser. The servlet looks like this:
...
response.setContentType("text/html; charset=iso-8859-7");
PrintWriter out = response.getWriter();
out.println(str);
System.out.println(str);
...
If I don't use the -Dfile.encoding=iso-8859-7 option the I get question
marks in the console and in the browser.
Can somebody help me with this? 10x in advance.
D.Denev
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>