mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
27 lines
533 B
PHP
27 lines
533 B
PHP
--TEST--
|
||
encoding conversion from script encoding into internal encoding
|
||
--SKIPIF--
|
||
<?php
|
||
if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
|
||
die("skip Requires configure --enable-zend-multibyte option");
|
||
}
|
||
if (!extension_loaded("mbstring")) {
|
||
die("skip Requires mbstring extension");
|
||
}
|
||
?>
|
||
--INI--
|
||
mbstring.encoding_translation = On
|
||
mbstring.script_encoding=Shift_JIS
|
||
mbstring.internal_encoding=UTF-8
|
||
--FILE--
|
||
<?php
|
||
function —\Ž\”\($ˆø<CB86>”)
|
||
{
|
||
echo $ˆø<CB86>”;
|
||
}
|
||
|
||
—\Ž\”\("ƒhƒŒƒ~ƒtƒ@ƒ\");
|
||
?>
|
||
--EXPECT--
|
||
ドレミファソ
|