Return to htmlentities05.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / strings |
1.1 misho 1: --TEST-- 2: htmlentities() test 5 (mbstring / cp1252) 3: --INI-- 4: output_handler= 5: --SKIPIF-- 6: <?php 7: extension_loaded("mbstring") or die("skip mbstring not available\n"); 8: mb_internal_encoding('cp1252'); 9: $php_errormsg = NULL; 10: @htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, ''); 11: if ($php_errormsg) { 12: die("skip cp1252 chracter set is not supported on this platform.\n"); 13: } 14: ?> 15: --FILE-- 16: <?php 17: mb_internal_encoding('cp1252'); 18: print mb_internal_encoding()."\n"; 19: var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, '')); 20: var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, '')); 21: ?> 22: --EXPECT-- 23: Windows-1252 24: string(28) "‚†™Ÿ" 25: string(32) "€¢£¤¥"