--- embedaddon/php/ext/standard/tests/strings/htmlentities.phpt 2012/02/21 23:48:04 1.1.1.1 +++ embedaddon/php/ext/standard/tests/strings/htmlentities.phpt 2012/05/29 12:34:45 1.1.1.2 @@ -1,16 +1,16 @@ --TEST-- -HTML entities +HTML entities of ISO-8859 chars --INI-- output_handler= --FILE-- \"&εΔ\n"); +$sc_encoded = htmlspecialchars ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1"); echo $sc_encoded; -$ent_encoded = htmlentities ("<>\"&εΔ\n"); +$ent_encoded = htmlentities ("<>\"&εΔ\n",ENT_COMPAT,"ISO-8859-1"); echo $ent_encoded; -echo html_entity_decode($sc_encoded); -echo html_entity_decode($ent_encoded); +echo html_entity_decode($sc_encoded,ENT_COMPAT,"ISO-8859-1"); +echo html_entity_decode($ent_encoded,ENT_COMPAT,"ISO-8859-1"); ?> --EXPECT-- <>"&εΔ