Bug #72751 [Fbk->NoF]: html_entity_decode table is incorrect
| From: | php-bugs at lists dot php dot net | Date: | Sun, 14 Aug 2016 04:22:34 +0000 |
| Subject: | Bug #72751 [Fbk->NoF]: html_entity_decode table is incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203263@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72751&edit=1
ID: 72751
Updated by: php-bugs@lists.php.net
Reported by: buggy at batpudding dot com
Summary: html_entity_decode table is incorrect
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Strings related
Operating System: Linux
PHP Version: 7.0.9
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2016-08-04 04:42:13] requinix@php.net
If that's what you're seeing then your page is using ISO 8859-1/Latin1 encoding when it
should be using UTF-8.
<?php
header ( "Content-Type: text/plain; charset=utf-8" );
print ( html_entity_decode( "´", ENT_COMPAT, 'UTF-8' ) );
------------------------------------------------------------------------
[2016-08-03 22:54:14] buggy at batpudding dot com
Description:
------------
---
From manual page: http://www.php.net/function.html-entity-decode
---
Test script:
---------------
print ( html_entity_decode( "´", ENT_COMPAT, 'UTF-8' ) );
Expected result:
----------------
´
Actual result:
--------------
ô
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72751&edit=1