Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1723

tapestry-upload does not use character encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.5
    • 5.0.7
    • tapestry-upload
    • None

    Description

      tapestry-upload ignores the character encoding set in the request and falls back to default character encoding.

      The problem is that when extracting the parameter values the FileItem#getString() instead of FileItem#getString(String encoding) is used. The same problem is described and solved in JBoss Portal CMS:
      See also: http://jira.jboss.com/jira/browse/JBPORTAL-1550

      The getString method should be called with the encoding of the request:
      item.getString(request.getCharacterEncoding());

      Attachments

        1. fileupload_encoding_20070827.patch
          2 kB
          Christian Köberl

        Activity

          People

            hlship Howard Lewis Ship
            koc Christian Köberl
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: