[ 
https://issues.apache.org/jira/browse/FILEUPLOAD-238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16052485#comment-16052485
 ] 

Bruno P. Kinoshita commented on FILEUPLOAD-238:
-----------------------------------------------

And the lack of coffee made me send the pull request, and also create the 
branch, to this ticket, instead of 283. Sorry for the noise. Recreating the 
pull request for the right issue.

> 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.4.14#64029)

Reply via email to