Swift_Mime_ContentEncoder_NativeQpContentEncoder::charsetChanged PHP Method

charsetChanged() public method

Notify this observer that the entity's charset has changed.
public charsetChanged ( string $charset )
$charset string
    public function charsetChanged($charset)
    {
        $this->charset = $charset;
    }

Usage Example

 public function testCharsetChangeNotImplemented()
 {
     $this->_encoder->charsetChanged('utf-8');
     $this->expectException(new RuntimeException('Charset "charset" not supported. NativeQpContentEncoder only supports "utf-8"'));
     $this->_encoder->charsetChanged('charset');
     $this->_encoder->encodeString('foo');
 }
All Usage Examples Of Swift_Mime_ContentEncoder_NativeQpContentEncoder::charsetChanged