Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

servet request parameters are not decoded properly #1991

Open
arinban opened this issue Jan 12, 2018 · 1 comment
Open

servet request parameters are not decoded properly #1991

arinban opened this issue Jan 12, 2018 · 1 comment

Comments

@arinban
Copy link

arinban commented Jan 12, 2018

My web application is working on Glassfish V4.1.1.
The following JSP page has this problem.

<%@ page contentType="text/html; charset=shift_jis" %>
Hello:<%= request.getParameter("username")%>.

When you enter some name which consists of 2-byte UTF charaters,
the page does not show the entered string properly.
The exactly same JSP works fine with V2.

Example of request:
http://localhost:28081/5675/ServletFilter?username=%90%D4%90F
test result : Hello:赤?F

the test result of V2: Hello:赤色

I hava provided the reproducer(5675.war).
5675.zip

@arinban
Copy link
Author

arinban commented Feb 3, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant