bug53891.phpt 445 B

1234567891011121314151617
  1. --TEST--
  2. Bug #53891 (iconv_mime_encode() fails to Q-encode UTF-8 string)
  3. --EXTENSIONS--
  4. iconv
  5. --FILE--
  6. <?php
  7. $preferences = array(
  8. 'scheme' => 'Q',
  9. 'input-charset' => 'utf-8',
  10. 'output-charset' => 'utf-8',
  11. 'line-length' => 74,
  12. 'line-break-chars' => "\r\n",
  13. );
  14. var_dump(iconv_mime_encode('subject', "d obeybiubrsfqllpdtpge…", $preferences));
  15. ?>
  16. --EXPECT--
  17. string(54) "subject: =?utf-8?Q?d=20obeybiubrsfqllpdtpge=E2=80=A6?="