How can I cleanly set the pageEncoding of all my JSPs?

前端 未结 1 716
孤城傲影
孤城傲影 2020-11-30 10:12

I need to encode all of my JSPs as UTF-8.

I\'ve looked around and found that I can use the following page directive to accomplish this:

<%@page pa         


        
1条回答
  •  佛祖请我去吃肉
    2020-11-30 10:39

    Put the following in your web.xml to achieve the goal.

    
        
            *.jsp
            UTF-8
        
    
    

    See also:

    • Unicode - How to get the characters right? - JSP/Servlet response

    0 讨论(0)
提交回复
热议问题