Download src/php/php-src/ext/mbstring/tests/bug46843.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug46843.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mbstring/tests/bug46843.phpt
-
curl -L -o bug46843.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug46843.phpt
291 Bytes
| --TEST-- | |
| Bug #46843 (CP936 euro symbol is not converted properly) | |
| --EXTENSIONS-- | |
| mbstring | |
| --FILE-- | |
| var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936'))); | |
| var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE'))); | |
| --EXPECT-- | |
| string(4) "20ac" | |
| string(2) "80" | |