I18N Problem when pop field in an upload type form
--------------------------------------------------
Key: OFBIZ-427
URL:
http://issues.apache.org/jira/browse/OFBIZ-427 Project: OFBiz (The Open for Business Project)
Issue Type: Bug
Components: framework
Affects Versions: SVN 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 is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa-
For more information on JIRA, see:
http://www.atlassian.com/software/jira