Swift_Mime_MimePart::setCharset PHP Method

setCharset() public method

Set the character set of this entity.
public setCharset ( string $charset ) : Swift_Mime_MimePart
$charset string
return Swift_Mime_MimePart
    public function setCharset($charset)
    {
        $this->_setHeaderParameter('Content-Type', 'charset', $charset);
        if ($charset !== $this->_userCharset) {
            $this->_clearCache();
        }
        $this->_userCharset = $charset;
        parent::charsetChanged($charset);
        return $this;
    }