title: Rest-assured POST call with multipart that contains Vietnamese characters in contentbody
body: <p>I am sending POST call to an endpoint with a controlname's contentbody that contain Vietnamese character (such as <code>á</code> <code>ư</code>, <code>ồ</code>, <code>ự</code>..).</p>
  
  <p>Although request was sent successfully, those special characters were replaced by <code>???</code> like <code>ch?a ???c n?</code> where it should be <code>chưa được nè</code> at UI :</p>
  
  <p><a href="https://i.stack.imgur.com/3gMQR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3gMQR.png" alt="illlustration"></a></p>
  
  <pre><code>public class MakeCostObject {
      RequestSpecBuilder requestSpec;
      public MakeCostObject() {
          requestSpec = new RequestSpecBuilder();
          String note = "chưa được nè";
          String status = "init";
  
          requestSpec.addMultiPart("note", note);
          requestSpec.addMultiPart("status", status);
      }
  
      public RequestSpecification createCost() {
          public RequestSpecification createCost () {
              return requestSpec.build();
          }
      }
  }
  </code></pre>
  
  <p>This is POST request, spec is created from <code>createCost</code> function.</p>
  
  <pre><code>response = given()
              .header("Content-type", "multipart/form-data")
              .header("Authorization", token)
              .when()
              .spec(spec)
              .post(APIPath.apiPath.POST_cost_upload);
  
  response.then().assertThat().statusCode(201);
  </code></pre>
  
  <p>I tried another API (non form-data), and UI can display perfectly.</p>
  
  <pre><code>String str = "Tiếng việt";
  Map&lt;String, Object&gt; body = new HashMap&lt;&gt;();
  
  body.put("note", str);
  
  given().spec(HeaderConfigs.headerwithnewToken())
          .when()
          .body(body)
          .patch("/costdetail/xxxx/");
  </code></pre>
  
  <p>How can I config to encode or something to solve my issue?</p>
  
  <p>My io.rest-assured version : 4.2.0.</p>
  
  <p>Thanks.</p>