對於那些正在尋找適用於 IMAP 的良好修改版 UTF-7 編碼實作的人,您可以在以下網址找到可用的程式碼:
http://tananyag.ntszki.hu/mail/functions/imap_utf7_local.php
結果與 imap-utf7-encode() 函式的結果不同,但與 Thunderbird 產生的信箱名稱相同。
(PHP 4, PHP 5, PHP 7, PHP 8)
imap_utf7_encode — 將 ISO-8859-1 字串轉換為修改過的 UTF-7 文字
將 string
轉換為修改過的 UTF-7 文字。
這是為了編碼包含某些不在可列印 ASCII 字元範圍內的字元的信箱名稱所需的功能。
字串
一個 ISO-8859-1 字串。
回傳以修改過的 UTF-7 編碼編碼的 字串
,如 » RFC 2060 的 5.1.3 節所定義。
對於那些正在尋找適用於 IMAP 的良好修改版 UTF-7 編碼實作的人,您可以在以下網址找到可用的程式碼:
http://tananyag.ntszki.hu/mail/functions/imap_utf7_local.php
結果與 imap-utf7-encode() 函式的結果不同,但與 Thunderbird 產生的信箱名稱相同。