php-src/ext/standard/tests/strings/htmlentities10.phpt
Steph Fox 87fac43ac0 - killed off UEXPECT
- html_translation_table and setlocale tests are no longer relevant
- there are a number of ANSI-encoded files. Is this deliberate?
2008-05-27 10:50:48 +00:00

17 lines
405 B
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--TEST--
htmlentities() test 10 (default_charset / cp1252)
--INI--
output_handler=
mbstring.internal_encoding=pass
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
unicode(4) "‚†™Ÿ"
unicode(27) "€&cent;&pound;&curren;&yen;"