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

 ID:               51490
 Updated by:       [email protected]
 Reported by:      sandel at ukr dot net
 Summary:          html_entity_encode() doesn't work with windows-1251
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          *Spelling functions
 Operating System: linux SuSE 11.2
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      moriyoshi



Previous Comments:
------------------------------------------------------------------------
[2010-04-06 23:20:51] sandel at ukr dot net

Description:
------------
html_entity_encode() doesn't work with windows-1251 with php 5.3.2....



BUT!!!! It works with latest PHP 5.2.X

Test script:
---------------
<?php





echo html_entity_decode( "&#xC7;&#xE0;&#xFF;&#xE2;&#xEA;&#xE0;",
ENT_QUOTES, 'cp1251');



// output will be &#xC7;&#xE0;&#xFF;&#xE2;&#xEA;&#xE0;



?>



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



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

Reply via email to