htmlentities12.phpt 281 B

12345678910111213
  1. --TEST--
  2. htmlentities() test 12 (default_charset / ISO-8859-1)
  3. --INI--
  4. output_handler=
  5. default_charset=ISO-8859-1
  6. --FILE--
  7. <?php
  8. print ini_get('default_charset')."\n";
  9. var_dump(htmlentities("\xe4\xf6\xfc", ENT_QUOTES, ''));
  10. ?>
  11. --EXPECT--
  12. ISO-8859-1
  13. string(18) "&auml;&ouml;&uuml;"