/functions/imap_utf7_local.php

Description

functions/imap_utf7_local.php - utf7-imap functions

This implements all functions that do imap UTF7 conversions. Before 1.3.2 functions were stored in imap_utf7_decode_local.php and imap_utf7_encode_local.php files.

Functions
decodeBASE64 (line 199)

Converts string from base64

  • return: decoded string
  • since: 1.2.7
string decodeBASE64 (string $s)
  • string $s: base64 encoded string
encodeBASE64 (line 161)

Converts string to base64

  • return: base64 encoded string
  • since: 1.2.7
string encodeBASE64 (string $s)
  • string $s: string
imap_utf7_decode_local (line 108)

converts folder name from utf7-imap to charset used by translation

If mbstring functions do not support charset used by translation, falls back to iso-8859-1

  • return: folder name in charset used by translation
  • since: 1.2.7
string imap_utf7_decode_local (string $s)
  • string $s: folder name in utf7-imap
imap_utf7_encode_local (line 47)

encode folder name to utf7-imap

If mbstring functions do not support charset used by translation, falls back to iso-8859-1

  • return: utf7-imap encoded folder name
  • since: 1.2.7
string imap_utf7_encode_local (string $s)
  • string $s: folder name
sqimap_mb_convert_encoding (line 30)

Function that uses php mbstring functions to convert from and to utf7-imap charset

Since 1.5.1 list of supported charsets depends sq_mb_list_encoding function. Before that it was hardcoded to iso-8859-x, utf-8 and iso-2022-jp.

  • return: encoded folder name or ''
  • since: 1.4.2
string sqimap_mb_convert_encoding (string $str, string $to_encoding, string $from_encoding, string $default_charset)
  • string $str: folder name
  • string $to_encoding: name of resulting charset
  • string $from_encoding: name of original charset
  • string $default_charset: default charset used by translation.

Documentation generated on Sat, 07 Oct 2006 16:11:51 +0300 by phpDocumentor 1.3.0RC6