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

Encoding problem with POSTing a form with Ajax

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC5.1
    • Fix Version/s: 1.5-RC6
    • Component/s: wicket
    • Labels:

      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. WICKET-3908.patch
          2 kB
          Attila Király
        2. myproject.tar.gz
          17 kB
          Bálint Kriván

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: