xref: /PHP-7.3/ext/mbstring/tests/bug62545.phpt (revision 01ea314e)
1--TEST--
2Bug #62545 (wrong unicode mapping in some charsets)
3--SKIPIF--
4<?php
5if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
6?>
7--FILE--
8<?php
9var_dump(
10    bin2hex(mb_convert_encoding("\x98", 'UTF-8', 'Windows-1251')),
11    bin2hex(mb_convert_encoding("\x81\x8d\x8f\x90\x9d", 'UTF-8', 'Windows-1252'))
12);
13?>
14===DONE===
15--EXPECT--
16string(6) "efbfbd"
17string(30) "efbfbdefbfbdefbfbdefbfbdefbfbd"
18===DONE===
19