File size: 291 Bytes
1e94262 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | --TEST--
Bug #46843 (CP936 euro symbol is not converted properly)
--EXTENSIONS--
mbstring
--FILE--
<?php
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"
|