Mantis - Resin
Viewing Issue Advanced Details
4007 minor always 04-20-10 11:54 01-18-11 17:40
alex  
ferg  
normal  
closed 3.1.10  
fixed  
none    
none 4.0.15  
0004007: request.getParameter returns null for i18nzed charset
rep on behalf of Shinomiya Nobuaki: email subj: 0000059: About the relation between '''pageEncoding''' and '''charset of contentType''' of the JSP's @page directive.
<%@ page contentType="text/html; charset=Windows-31J" pageEncoding="UTF-8" %>
<html>
<body>
<%
    String characterEncoding = request.getCharacterEncoding();
    String param_1 = request.getParameter("param_1");

    out.println("characterEncoding: " + characterEncoding);
  out.println("
");
    out.println("param_1: " + param_1);
  out.println("
");

%>
    <hr/>

    <form method="post" enctype="application/x-www-form-urlencoded">
    <input type="text" name="param_1" value="&12354;&12356;&12358;&12360;&12362;"/>
        <input type="submit"/>
    </form>
</body>
</html>

Second issue
- request.getCharacterEncoding() returns a value whereas it should return null.
expected output for param_1 is &12354;&12356;&12358;&12360;&12362;

Notes
(0004965)
ferg   
01-18-11 17:40   
jsp/1e0k