Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-427

I18N Problem when pop field in an upload type form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • None
    • framework
    • None
    • Simple Chinese Environment

    • Bug Crush Event - 21/2/2015

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

      Attachments

        Issue Links

          Activity

            People

              deepak Deepak Dixit
              freekid Robinson Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: