blob: 58c0b14b1eabe48bec47f6821e3e35d433a52e26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
htmlentities() test 10 (default_charset / cp1252)
--INI--
output_handler=
default_charset=cp1252
--FILE--
<?php
print ini_get('default_charset')."\n";
var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, ''));
var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, ''));
?>
--EXPECT--
cp1252
string(28) "‚†™Ÿ"
string(32) "€¢£¤¥"
|