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

    • 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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment