Handles RFC 2231 specified Encoding in Swift Mailer.

package Swift
subpackage Encoder
author Chris Corbyn

 Methods

Creates a new Rfc2231Encoder using the given character stream instance.

__construct(\Swift_CharacterStream $charStream) 

Parameters

Updates the charset used.

charsetChanged(string $charset) 

Parameters

$charset

string

Takes an unencoded string and produces a string encoded according to RFC 2231 from it.

encodeString(string $string, int $firstLineOffset, $maxLineLength) : string

Parameters

$string

string

to encode

$firstLineOffset

int

$maxLineLength

Returns

string

 Properties

 

$_charStream : \Swift_CharacterStream
access private