\Horde_Imap_Client_Utf7imap

Allows conversions between UTF-8 and UTF7-IMAP (RFC 3501 [5.1.3]).

Summary

Methods
Properties
Constants
Utf7ImapToUtf8()
Utf8ToUtf7Imap()
No public properties found
No constants found
No protected methods found
$_mbstring
N/A
No private methods found
$_index64
$_base64
N/A

Properties

$_mbstring

$_mbstring : array

Is mbstring extension available?

Type

array

$_index64

$_index64 : array

Lookup table for conversion.

Type

array

$_base64

$_base64 : array

Lookup table for conversion.

Type

array

Methods

Utf7ImapToUtf8()

Utf7ImapToUtf8(string  $str) : string

Convert a string from UTF7-IMAP to UTF-8.

Parameters

string $str

The UTF7-IMAP string.

Throws

\Horde_Imap_Client_Exception

Returns

string —

The converted UTF-8 string.

Utf8ToUtf7Imap()

Utf8ToUtf7Imap(string  $str, boolean  $force = true) : string

Convert a string from UTF-8 to UTF7-IMAP.

Parameters

string $str

The UTF-8 string.

boolean $force

Assume $str is UTF-8 (no-autodetection)? If false, attempts to auto-detect if string is already in UTF7-IMAP.

Throws

\Horde_Imap_Client_Exception

Returns

string —

The converted UTF7-IMAP string.