xref: /PHP-5.4/ext/mbstring/tests/bug60306.phpt (revision 50083903)
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