Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
1.0.1-rc2
-
None
-
Win 2k, Oracle 9i, JDK-5.0, Tomcat-4.1.31
Description
I'm using UTF-8 but requests stays in my local encoding (cp-1251).
It may be overcome using this:
private static String CHARSET = "iso-8859-1";
................................
public void init(ServletConfig config) throws ServletException
{
super.init(config);
String charset = config.getInitParameter("charset");
if(charset != null && charset.length() > 0)
....................
public void doGet(HttpServletRequest servletRequest, HttpServletResponse servletResponse) throws IOException, ServletException
{
servletRequest.setCharacterEncoding(CHARSET);
..................