php-doc-en/reference/imap/functions/imap-utf7-encode.xml

58 lines
1.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.9 -->
<refentry id="function.imap-utf7-encode">
<refnamediv>
<refname>imap_utf7_encode</refname>
<refpurpose>
Converts ISO-8859-1 string to modified UTF-7 text
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>imap_utf7_encode</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
Converts <parameter>data</parameter> to modified UTF-7
text. Note that <parameter>data</parameter> is expected to be
encoded in ISO-8859-1.
</para>
<para>
This is needed to encode mailbox names that contain certain
characters which are not in range of printable ASCII characters.
</para>
<para>
The modified UTF-7 encoding is defined in <ulink
url="&url.rfc;2060">RFC 2060</ulink>, section 5.1.3
(original UTF-7 was defined in <ulink
url="&url.rfc;1642">RFC1642</ulink>).
</para>
<para>
See also: <function>imap_utf7_decode</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->