I am try to do POST REQUEST to api, let say the API will return a response header in thailand character 10,000 บาท
. after i do the request the response i am getting the header value is 10,000 à¸à¸²à¸
.
Here is the code:
RequestSpecification httpRequest = RestAssured.given().header(HeaderKey.appId,header.getAppId());
Response response = httpRequest.post(uri);
String errMessage = response.header("key-to-value-i-want");
System.out.println(errMessage);
what's missing from my code? Thanks you