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

Encoding problem with POSTing a form with Ajax

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              balintkrivan Bálint Kriván

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment