I've been trying PyServlet (in tomcat) and I can connect and extract data from a utf8 db in mysql using zxjdbc.

However, at the browser end, it displays wrong characters for non-ascii characters.

I'm doing a simple

response.setContentType("text/html; charset=UTF-8")
toClient.println("<li>%s</li>" % row[0])

Please help me sort out this issue. It's a major road block to use jython in my project.