Download src/php/php-src/ext/iconv/tests/bug53891.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 445 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug53891.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug53891.phpt
-
curl -L -o bug53891.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug53891.phpt
445 Bytes
| --TEST-- | |
| Bug #53891 (iconv_mime_encode() fails to Q-encode UTF-8 string) | |
| --EXTENSIONS-- | |
| iconv | |
| --FILE-- | |
| $preferences = array( | |
| 'scheme' => 'Q', | |
| 'input-charset' => 'utf-8', | |
| 'output-charset' => 'utf-8', | |
| 'line-length' => 74, | |
| 'line-break-chars' => "\r\n", | |
| ); | |
| var_dump(iconv_mime_encode('subject', "d obeybiubrsfqllpdtpge…", $preferences)); | |
| --EXPECT-- | |
| string(54) "subject: =?utf-8?Q?d=20obeybiubrsfqllpdtpge=E2=80=A6?=" | |