htmlentities13.phpt 518 B

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