public void setEncoding(String charset) {
    Validator.validate(!Validator.isBlank(charset), "encoding cannot be blank");
    this.encoding = charset.trim();
  }
public void setEncoding ( String charset ) { Validator . validate ( ! Validator . isBlank ( charset ) , "encoding cannot be blank" ) ; this . encoding = charset . trim ( ) ; }
Sets encoding for the data to be published. If none specified, default is
UTF-8

@param charset encoding for expected log messages