JSP UTF-8 solution
I think I've fixed the problem from my previous post. The solution is there in the Servlet API docs, but it's not where you might think. Under ServletResponse.setContentType it says "The given content type may include a character encoding specification, for example,
It seems that not only is this used to set the
I say "seems" because my only evidence for this is that I now have English, Chinese and French accented characters on the same page and they all look right to me. I haven't actually figured out what the UTF-8 values should be and checked that the page source containes them...
text/html;charset=UTF-8."It seems that not only is this used to set the
Content-Type HTTP header, but also for specifying a character converter for the servlet to use.I say "seems" because my only evidence for this is that I now have English, Chinese and French accented characters on the same page and they all look right to me. I haven't actually figured out what the UTF-8 values should be and checked that the page source containes them...
