1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
--TEST--
htmlentities() test 16 (mbstring / cp1251)
--INI--
output_handler=
internal_encoding=cp1251
--EXTENSIONS--
mbstring
--FILE--
<?php
$str = "\x88\xa9\xf0\xee\xf1\xea\xee\xf8\xed\xfb\xe9";
var_dump(bin2hex($str), bin2hex(htmlentities($str, ENT_QUOTES, '')));
var_dump(htmlentities($str, ENT_QUOTES | ENT_HTML5, ''));
?>
--EXPECT--
string(22) "88a9f0eef1eaeef8edfbe9"
string(42) "266575726f3b26636f70793bf0eef1eaeef8edfbe9"
string(58) "€©роскошный"
|