Download src/php/php-src/ext/iconv/tests/bug66828.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 483 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug66828.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug66828.phpt
-
curl -L -o bug66828.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug66828.phpt
483 Bytes
| --TEST-- | |
| Bug #66828 (iconv_mime_encode Q-encoding longer than it should be) | |
| --EXTENSIONS-- | |
| iconv | |
| --FILE-- | |
| $preferences = array( | |
| "input-charset" => "ISO-8859-1", | |
| "output-charset" => "UTF-8", | |
| "line-length" => 76, | |
| "line-break-chars" => "\n", | |
| "scheme" => "Q" | |
| ); | |
| var_dump(iconv_mime_encode("Subject", "Test Test Test Test Test Test Test Test", $preferences)); | |
| --EXPECT-- | |
| string(74) "Subject: =?UTF-8?Q?Test=20Test=20Test=20Test=20Test=20Test=20Test=20Test?=" | |