1--TEST-- 2htmlentities() test 1 (cp1252) 3--INI-- 4output_handler= 5--FILE-- 6<?php 7var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, 'cp1252')); 8var_dump(htmlentities("\x80\xa2\xa3\xa4\xa5", ENT_QUOTES, 'cp1252')); 9?> 10--EXPECT-- 11string(28) "‚†™Ÿ" 12string(32) "€¢£¤¥" 13