You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Sharan Foga (JIRA)" <ji...@apache.org> on 2015/02/21 08:38:33 UTC
[jira] [Updated] (OFBIZ-427) I18N Problem when pop field in an
upload type form
[ https://issues.apache.org/jira/browse/OFBIZ-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sharan Foga updated OFBIZ-427:
------------------------------
Sprint: Bug Crush Event - 21/2/2015
> 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)