Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Originally based on code: Copyright (C) 2000 Edmund Grimley Evans <edmundo@rano.org> Released under the GPL (version 2)

Copyright: 2000 Edmund Grimley Evans <edmundo@rano.org>
Copyright: 2008-2017 Horde LLC
License: http://www.horde.org/licenses/lgpl21 LGPL 2.1
File Size: 326 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Horde_Imap_Client_Utf7imap:: (2 methods):
  Utf7ImapToUtf8()
  Utf8ToUtf7Imap()


Class: Horde_Imap_Client_Utf7imap  - X-Ref

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

Utf7ImapToUtf8($str)   X-Ref
Convert a string from UTF7-IMAP to UTF-8.

param: string $str  The UTF7-IMAP string.
return: string  The converted UTF-8 string.

Utf8ToUtf7Imap($str, $force = true)   X-Ref
Convert a string from UTF-8 to UTF7-IMAP.

param: string $str     The UTF-8 string.
param: boolean $force  Assume $str is UTF-8 (no-autodetection)? If
return: string  The converted UTF7-IMAP string.