ID:               48645
 Updated by:       j...@php.net
 Reported By:      psc at webcraft dot ch
-Status:           Open
+Status:           Verified
 Bug Type:         mbstring related
 Operating System: Debian Lenny
 PHP Version:      5.2.10


Previous Comments:
------------------------------------------------------------------------

[2009-06-22 14:47:04] psc at webcraft dot ch

Description:
------------
When converting a hexadecimal html entity to UTF-8 with
mb_convert_encoding, it get's converted to a broken unicode character
(displayed in firefox as a small square). 

Reproduce code:
---------------
$v_html = "š";
echo $v_html;
echo mb_convert_encoding($v_html, 'UTF-8', 'HTML-ENTITIES');
echo html_entity_decode($v_html, ENT_COMPAT, 'UTF-8');

Expected result:
----------------
I'd expect it to output three times the same character, š.

At first as hexadecimal html entity, then two times in UTF-8.

ššš

Actual result:
--------------
š[something broken]š


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48645&edit=1

Reply via email to