mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
17 lines
483 B
PHP
17 lines
483 B
PHP
--TEST--
|
|
htmlentities() test 14 (default_charset / Shift_JIS)
|
|
--INI--
|
|
output_handler=
|
|
default_charset=Shift_JIS
|
|
filter.default=unsafe_raw
|
|
--FILE--
|
|
<?php
|
|
print ini_get('default_charset')."\n";
|
|
var_dump(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, ''));
|
|
?>
|
|
--EXPECTF--
|
|
Shift_JIS
|
|
|
|
Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s on line %d
|
|
string(6) "�A�B�C"
|