Bug #51490 [Opn->Nab]: html_entity_encode() doesn't work with windows-1251
| From: | cmb@php.net | Date: | Mon, 23 Jul 2018 15:06:35 +0000 |
| Subject: | Bug #51490 [Opn->Nab]: html_entity_encode() doesn't work with windows-1251 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216414@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=51490&edit=1
ID: 51490
Updated by: cmb@php.net
Reported by: sandel at ukr dot net
Summary: html_entity_encode() doesn't work with windows-1251
-Status: Open
+Status: Not a bug
Type: Bug
-Package: *Spelling functions
+Package: Strings related
Operating System: linux SuSE 11.2
PHP Version: 5.3.2
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The html entity Ç denotes the character Ã[1], which is not
representable in CP-1252.
> BUT!!!! It works with latest PHP 5.2.X
Indeed, since this bug has only been fixed as of PHP 5.3.0[2].
[1] <https://dev.w3.org/html5/html-author/charref>
[2] <http://git.php.net/?p=php-src.git;a=commit;h=23e3baf>
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( "Çàÿâêà",
ENT_QUOTES, 'cp1251');
// output will be Çàÿâêà
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=51490&edit=1