Tapestry: character encoding issue

后端 未结 2 791
再見小時候
再見小時候 2021-01-20 11:40

I have a Tapestry application, that retrieves data from a form, writes it to a database and then displays the result. It all works well as long as no special characters (Ä,

2条回答
  •  耶瑟儿~
    2021-01-20 11:59

    It was indeed a misconfiguration of my server. The following addition to my web.xml solved it (of course this should also work with a non-Spring filter).

    
        charsetFilter
        org.springframework.web.filter.CharacterEncodingFilter
        
            encoding
            UTF-8
        
    
    
    
        charsetFilter
        /*
    
    

提交回复
热议问题