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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • None
    • 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

              Unassigned Unassigned
              gkislin Kislin Grigory
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: