1--TEST-- 2htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) 3--SKIPIF-- 4<?php 5$result = (bool)setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); 6if (!$result) { 7 die("skip setlocale() failed\n"); 8} 9?> 10--INI-- 11output_handler= 12default_charset= 13internal_encoding=pass 14--FILE-- 15<?php 16 setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro'); 17 var_dump(htmlentities("\xbc\xbd\xbe", ENT_QUOTES, '')); 18?> 19--EXPECT-- 20string(20) "ŒœŸ" 21