lib/classes/Swift/Mime/MimePart.php
public function setCharset($charset)
    {
        $this->setHeaderParameter('Content-Type', 'charset', $charset);
        if ($charset !== $this->userCharset) {
            $this->clearCache();
        }
        $this->userCharset = $charset;
        parent::charsetChanged($charset);

        return $this;
    }
public function setCharset($charset)
    {
        $this->setHeaderParameter('Content-Type', 'charset', $charset);
        if ($charset !== $this->userCharset) {
            $this->clearCache();
        }
        $this->userCharset = $charset;
        parent::charsetChanged($charset);

        return $this;
    }
public function setCharset ( $ charset ) { $ this -> setHeaderParameter ( 'Content-Type' , 'charset' , $ charset ) ; if ( $ charset !== $ this -> userCharset ) { $ this -> clearCache ( ) ; } $ this -> userCharset = $ charset ; parent :: charsetChanged ( $ charset ) ; return $ this ; }
Set the character set of this entity.

@param string $charset

@return $this
Set the character set of this entity .