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

Encoding problem with POSTing a form with Ajax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5-RC5.1
    • 1.5-RC6
    • wicket

    Description

      The form is always posted using Ajax in UTF-8, but if you're using a different encoding in the DB or the HTML aswell, the string is ugly obviously. Wicket should convert from UTF-8 to the given encoding (detecting from getMarkupSettings().setDefaultMarkupEncoding("..."); or getRequestCycleSettings().setResponseRequestEncoding("..."); or an other settings parameter which could be given to wicket)

      I'm attaching a quickstart project which demonstrate this issue by echoing back the string given to a textarea.

      Attachments

        1. myproject.tar.gz
          17 kB
          Bálint Kriván
        2. WICKET-3908.patch
          2 kB
          Attila Király

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              balintkrivan Bálint Kriván
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: