xref: /PHP-5.5/ext/mbstring/tests/bug46843.phpt (revision aba81326)
1--TEST--
2Bug #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
7var_dump(bin2hex(mb_convert_encoding("\x80", 'UCS-2BE', 'CP936')));
8var_dump(bin2hex(mb_convert_encoding("\x20\xac", 'CP936', 'UCS-2BE')));
9?>
10--EXPECT--
11string(4) "20ac"
12string(2) "80"
13