1--TEST-- 2Bug #66828 (iconv_mime_encode Q-encoding longer than it should be) 3--EXTENSIONS-- 4iconv 5--FILE-- 6<?php 7$preferences = array( 8 "input-charset" => "ISO-8859-1", 9 "output-charset" => "UTF-8", 10 "line-length" => 76, 11 "line-break-chars" => "\n", 12 "scheme" => "Q" 13); 14var_dump(iconv_mime_encode("Subject", "Test Test Test Test Test Test Test Test", $preferences)); 15?> 16--EXPECT-- 17string(74) "Subject: =?UTF-8?Q?Test=20Test=20Test=20Test=20Test=20Test=20Test=20Test?=" 18