Webiny\Component\Http\Response::setCharset PHP Method

setCharset() public method

Set the response charset.
public setCharset ( string $charset )
$charset string Charset name.
    public function setCharset($charset)
    {
        $this->charset = $charset;
        $this->setContentType($this->getContentType());
        // update charset which is set on content-type
        return $this;
    }