title: Java, JBOSS, Accept MULTIPART_FORM_DATA and JSON with spanish accent
body: <p>From a REST google api I'm sendind POST with <code>Content-Type: application/x-www-form-urlencoded</code>. </p>
  
  <pre><code>------WebKitFormBoundary
  Content-Disposition: form-data; name="model"
  Content-type: application/json
  
  {
      "placeId":2,
      "reportDate":"2016-03-10T05:00:00.000Z",
      "form":{
       "apply" :"NO",
   "microbasin": {
      "id": 1,
      "name": "Caño Rubiales"
      }
    }
  }
  ------WebKitFormBoundary--
  </code></pre>
  
  <p>In my method I consume:</p>
  
  <pre><code>    @POST
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      public Response create (@Context UriInfo uriInfo,
                              @Context HttpServletRequest req,
                              MultipartFormDataInput input) throws IOException
      {
  
  
          List&lt;InputPart&gt; l = input.getFormDataMap().get("model");
  
          String str = new String (l.get(0).getBodyAsString().getBytes("iso-8859-1"), "UTF-8");
  
          System.out.println(str);
  
          InputStream file = input.getFormDataPart("file", new GenericType&lt;InputStream&gt;() {});
  
          return null;
      }
  </code></pre>
  
  <p>So the received symbol for <code>Caño</code> is <code>Caýýo</code>. I've tried a lot of options, with all encoding types, but without success. Can someone help me please, or give me some advice about how can accept file and json in just one method with the proper symbols. </p>