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

后端 未结 10 1764
忘掉有多难
忘掉有多难 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条回答
  •  旧巷少年郎
    2020-12-03 09:02

    First off, I have no idea how to solve this, since I don't know much about Java and JSP.

    Having said that: the characters on the right-hand side of your table are the UTF-8 encoding of the left-hand side. That is, somewhere in your code, you're interpreting bytes as Latin-1 (or whatever your default encoding is), where they actually represent UTF-8 encoded characters...

提交回复
热议问题