xref: /php-src/ext/mbstring/tests/bug60306.phpt (revision 39131219)
1--TEST--
2Bug #60306 (Characters lost while converting from cp936 to utf8)
3--EXTENSIONS--
4mbstring
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