[
https://issues.apache.org/jira/browse/OFBIZ-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15462527#comment-15462527 ]
Jacques Le Roux commented on OFBIZ-427:
---------------------------------------
Agreed
> I18N Problem when pop field in an upload type form
> --------------------------------------------------
>
> Key: OFBIZ-427
> URL:
https://issues.apache.org/jira/browse/OFBIZ-427> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Environment: Simple Chinese Environment
> Reporter: Robinson Ouyang
> Priority: Minor
>
> When I pop a field value with encoding GBK, I get wrong string, I check the org.ofbiz.webapp.event.ServiceEventHandler.java, find that when pop field value from multipart/form-data form, we didn't take care of the char encoding, which like following:
> multiPartMap.put(fieldName, item.getString(request.getCharacterEncoding()));
> And now I change it like following:
> try {
> multiPartMap.put(fieldName, item.getString(request.getCharacterEncoding()));
> } catch (UnsupportedEncodingException e) {
> multiPartMap.put(fieldName, item.getString());
> }
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)