Download src/php/php-src/ext/iconv/tests/bug48289.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug48289.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/iconv/tests/bug48289.phpt
-
curl -L -o bug48289.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/iconv/tests/bug48289.phpt
541 Bytes
| --TEST-- | |
| Bug #48289 (iconv_mime_encode() quoted-printable scheme is broken) | |
| --EXTENSIONS-- | |
| iconv | |
| --FILE-- | |
| $text = "\xE3\x83\x86\xE3\x82\xB9\xE3\x83\x88\xE3\x83\x86\xE3\x82\xB9\xE3\x83\x88"; | |
| $options = array( | |
| 'scheme' => 'Q', | |
| 'input-charset' => 'UTF-8', | |
| 'output-charset' => 'UTF-8', | |
| 'line-length' => 30, | |
| ); | |
| echo iconv_mime_encode('Subject', $text, $options); | |
| --EXPECT-- | |
| Subject: =?UTF-8?Q?=E3=83=86?= | |
| =?UTF-8?Q?=E3=82=B9?= | |
| =?UTF-8?Q?=E3=83=88?= | |
| =?UTF-8?Q?=E3=83=86?= | |
| =?UTF-8?Q?=E3=82=B9?= | |
| =?UTF-8?Q?=E3=83=88?= | |