OFBiz
  1. OFBiz
  2. OFBIZ-427

I18N Problem when pop field in an upload type form

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: SVN trunk
    • Fix Version/s: None
    • Component/s: framework
    • Labels:
      None
    • Environment:

      Simple Chinese Environment

      Description

      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()); }

        Activity

        Robinson Ouyang created issue -
        Gavin made changes -
        Field Original Value New Value
        Workflow jira [ 12388541 ] OFbiz Workflow [ 12504591 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Robinson Ouyang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development