You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Kislin Grigory (JIRA)" <ji...@apache.org> on 2014/06/05 10:11:01 UTC

[jira] [Resolved] (FILEUPLOAD-238) Default charset hardcoded in FileItem (must be used Charset.defaultCharset())

     [ https://issues.apache.org/jira/browse/FILEUPLOAD-238?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kislin Grigory resolved FILEUPLOAD-238.
---------------------------------------

    Resolution: Fixed

Solution: use String getString(String encoding)

> Default charset hardcoded in FileItem (must be used Charset.defaultCharset())
> -----------------------------------------------------------------------------
>
>                 Key: FILEUPLOAD-238
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-238
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.3
>            Reporter: Kislin Grigory
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)