xref: /PHP-8.0/ext/mbstring/tests/bug62545.phpt (revision a555cc0b)
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--EXPECT--
15string(6) "efbfbd"
16string(30) "efbfbdefbfbdefbfbdefbfbdefbfbd"
17