mirror of
https://github.com/php/php-src.git
synced 2025-01-14 06:54:52 +08:00
12 lines
317 B
PHP
12 lines
317 B
PHP
--TEST--
|
|
Bug #60306 (Characters lost while converting from cp936 to utf8)
|
|
--SKIPIF--
|
|
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
|
--FILE--
|
|
<?php
|
|
$s = "洪仁玕";
|
|
var_dump($s === mb_convert_encoding(mb_convert_encoding($s, "cp936", "utf8"), "utf8", "cp936"));
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|