Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-238

Default charset hardcoded in FileItem (must be used Charset.defaultCharset())

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: None
    • Labels:
      None

      Description

      It is no way to set charset in form with mixed text and file input and enctype="multipart/form-data". So request ContextType is null and FileItem.getString() used default charset.
      But default charset taken not from java Charset.defaultCharset() but hardcoded in DiskFileItem.DEFAULT_CHARSET="ISO-8859-1". So use UTF-8 only possible in own toString.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gkislin Kislin Grigory
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: