xref: /php-src/ext/mbstring/tests/bug46843.phpt (revision 39131219)
1--TEST--
2Bug #46843 (CP936 euro symbol is not converted properly)
3--EXTENSIONS--
4mbstring
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