Character encoding JSP -displayed wrong in JSP but not in URL: “á » á é » é”

后端 未结 10 1782
忘掉有多难
忘掉有多难 2020-12-03 08:24

I have this Web Application in JSP running on JBoss Application Server. I am using Servlets for friendly urls. I\'m sending search parameters through my JSP\'s and Servlets.

10条回答
  •  猫巷女王i
    2020-12-03 08:56

    I think the problem might be that the browser does not specify the form post to be utf-8. There is a lot to read about form posts and encodings on the web, multiple web frameworks provide character encoding filters to 'fix' this issue, maybe just like your idea for a fix was - see for example http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/web/filter/CharacterEncodingFilter.html

提交回复
热议问题