1--TEST-- 2Test mb_decode_numericentity() function : Convert HTML-Entities to UTF-8 3--SKIPIF-- 4<?php 5if (!extension_loaded('mbstring')) die('skip mbstring not enabled'); 6function_exists('mb_encode_mimeheader') or die("skip mb_encode_mimeheader() is not available in this build"); 7?> 8--FILE-- 9<?php 10$str1 = '¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ'; 11$str2 = 'ƒΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ•…′″‾⁄℘ℑℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋〈〉◊♠♣♥♦'; 12$str3 = 'aŒbœcŠdše€fg'; 13$convmap = array(0x0, 0x2FFFF, 0, 0xFFFF); 14echo mb_decode_numericentity($str1, $convmap, "UTF-8")."\n"; 15echo mb_decode_numericentity($str2, $convmap, "UTF-8")."\n"; 16echo mb_decode_numericentity($str3, $convmap, "UTF-8")."\n"; 17 18echo mb_decode_numericentity('�', $convmap), "\n"; 19echo mb_decode_numericentity('�', $convmap), "\n"; 20echo mb_decode_numericentity('�', $convmap), "\n"; 21echo mb_decode_numericentity('�', $convmap), "\n"; 22echo mb_decode_numericentity('�', $convmap), "\n"; 23 24?> 25--EXPECT-- 26¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ 27ƒΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϑϒϖ•…′″‾⁄℘ℑℜ™ℵ←↑→↓↔↵⇐⇑⇒⇓⇔∀∂∃∅∇∈∉∋∏∑−∗√∝∞∠∧∨∩∪∫∴∼≅≈≠≡≤≥⊂⊃⊄⊆⊇⊕⊗⊥⋅⌈⌉⌊⌋〈〉◊♠♣♥♦ 28aŒbœcŠdše€fg 29� 30� 31� 32� 33� 34