Response logging log() does not show the json response in utf-8 resulting in unreadable characters
Author: vaatjeCreated Aug 28, 2026Updated Aug 28, 2026
rest-assured 6.0.0 OS: Windows 11 Belgian Dutch
given().log().uri().header(key, value)
.when().get(url)
.then().log().all().statusCode(200)
.extract().as(CivilianResponse.class);The json response log output in Intellij console or in git-bash shows:
"address" {
"land": {
"code": "BE",
"description: "Belgiᅢᆱ"
}, the correct output should be "België" ("land" is Dutch for "country").
Debugging the CivilianResponse in Intellij shows "België".
The same url in Chrome browser correctly output "België".
Trying decoderConfig did not help:
given().config(RestAssured.config().decoderConfig(decoderConfig().defaultContentCharset("UTF-8"))).log().uri().header(key, value)
.when().get(url)
.then().log().all().statusCode(200)resulted in the same bad log output.
Source: rest-assured/rest-assured