Annotation of embedaddon/php/ext/mbstring/tests/bug46843.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #46843 (CP936 euro symbol is not converted properly)
! 3: --SKIPIF--
! 4: <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
! 5: --FILE--
! 6: <?php
! 7: var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936')));
! 8: var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
! 9: ?>
! 10: --EXPECT--
! 11: string(4) "20ac"
! 12: string(2) "80"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>