/hphp/test/zend/bad/ext/mbstring/tests/htmlent.php
PHP | 16 lines | 7 code | 1 blank | 8 comment | 0 complexity | 00825da81e148e7285ffdb67eb73099e MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?php
- // enable output encoding through output handler
- //ob_start("mb_output_handler");
- // @... are must be decoded on input these are not reencoded on output.
- // If you see @AB on output this means input encoding fails.
- // If you do not see ä... on output this means output encoding fails.
- // Using UTF-8 internally allows to encode/decode ALL characters.
- // &128... will stay as they are since their character codes are above 127
- // and they do not have a named entity representaion.
- ?>
- <?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?>
- <?php mb_parse_str("test=&@AB€‚äöü€⟨⟩", $test);
- print_r($test);
- ?>
- ===DONE===