Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-3578

Wicket should set the character encoding on requests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC3
    • 1.5-RC4
    • wicket
    • None

    Description

      Browsers should but actually do not send encoding information with requests. Because of this servlet containers (like Tomcat) use the default "ISO-8859-1" encoding to decode POST parameters in non-multipart requests. This is wrong in case the webapp is using a different encoding (like UTF-8).

      To workaround this it is possible to specify the correct encoding on the server side trough javax.servlet.ServletRequest.setCharacterEncoding(String). This can be done in a filter (I use spring's CharacterEncodingFilter for this, but Tomcat also has SetCharacterEncodingFilter for the same). It would be nice if wicket could do this out of box so no additional filter would be needed.

      Attachments

        1. fix-WICKET-3578.patch
          4 kB
          Attila Király
        2. wicket-3578.zip
          5 kB
          Attila Király

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            akiraly Attila Király
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: