htmlentities13.phpt 474 B

12345678910111213141516
  1. --TEST--
  2. htmlentities() test 13 (default_charset / EUC-JP)
  3. --INI--
  4. output_handler=
  5. default_charset=EUC-JP
  6. filter.default=unsafe_raw
  7. --FILE--
  8. <?php
  9. print ini_get('default_charset')."\n";
  10. var_dump(htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, ''));
  11. ?>
  12. --EXPECTF--
  13. EUC-JP
  14. 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
  15. string(6) "¡¢¡£¡¤"