xref: /PHP-8.0/ext/mbstring/tests/bug60306.phpt (revision 601407aa)
1--TEST--
2Bug #60306 (Characters lost while converting from cp936 to utf8)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--FILE--
6<?php
7$s = "洪仁玕";
8var_dump($s === mb_convert_encoding(mb_convert_encoding($s, "cp936", "utf8"), "utf8", "cp936"));
9?>
10--EXPECT--
11bool(true)
12