rest-assured/src/main/java/io/restassured/config/EncoderConfig.java
public EncoderConfig defaultCharsetForContentType(Charset charset, String contentType) {
        notNull(charset, "Charset");
        return defaultCharsetForContentType(charset.toString(), contentType);
    }
public EncoderConfig defaultCharsetForContentType(Charset charset, String contentType) {
        notNull(charset, "Charset");
        return defaultCharsetForContentType(charset.toString(), contentType);
    }
public EncoderConfig defaultCharsetForContentType ( Charset charset , String contentType ) { notNull ( charset , "Charset" ) ; return defaultCharsetForContentType ( charset . toString ( ) , contentType ) ; }
Specify the default charset to use for the specific content-type if it's not specified in the content-type header explicitly

@param charset     The charset to use as default (unless specified explicitly)
@param contentType The content-type
@return A new instance of {@link EncoderConfig}
Specify the default charset to use for the specific content - type if it s not specified in the content - type header explicitly