Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-305

Allow setting the default character set in multipart/form-data provider

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • jaxrs
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration

      The current implementation of the multipart/form-data provider conforms to RFC2046, assuming US-ASCII in absence of a charset parameter within the content type header. Other character sets must be specified explicitely, e.g.

      Content-type: text/plain; charset=utf-8

      However, current browsers use the encoding of the page containing the form (e.g. utf-8) and do not send this header upon form submission. So any non-US-ASCII text is garbled.

      Browser-based form submission is a common need in JavaScript REST clients to support file upload.

      Apache FileUpload, for example, allows the setting of the default character set.

              patriot1burke@gmail.com Bill Burke (Inactive)
              agawecki Andreas Gawecki (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: