ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharan Foga (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-427) I18N Problem when pop field in an upload type form
Date Sat, 21 Feb 2015 07:38:33 GMT

     [ 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)

Mime
View raw message