Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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.