iconv_mime_encode() 並不直接適用於編碼包含 RFC 1522 第 4 節和第 5 節中所述「特殊字元」的標頭,例如
<?php
$mimeprefs = array ("scheme" => "Q",
"input-charset" => "utf-8",
"output-charset" => "utf-8",
"line-break-chars" => "\n");
$enc = iconv_mime_encode('From', '"Réal Namé" <user@example.com>', $prefs);
?>
會錯誤地嘗試編碼角括號。要使用此函數代替 mb_encode_mimeheader(),您需要分別編碼文字,並移除多餘的欄位名稱
<?php
$encoded = "From: \"". preg_replace('/^:\s+/', '', iconv_mime_encode("", $real, $mimeprefs))."\" <$email>";
?>
此外,根據 RFC 1522,「line-length」的值大於 76 是不合法的,且產生的編碼文字可能無法被識別。(未經測試,但 72 會更安全。)