Bug #72751 [Opn->Fbk]: html_entity_decode table is incorrect
| From: | requinix@php.net | Date: | Thu, 04 Aug 2016 04:42:15 +0000 |
| Subject: | Bug #72751 [Opn->Fbk]: html_entity_decode table is incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202902@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: requinix@php.net
Reported by: buggy at batpudding dot com
Summary: html_entity_decode table is incorrect
-Status: Open
+Status: Feedback
Type: Bug
-Package: URL related
+Package: Strings related
Operating System: Linux
PHP Version: 7.0.9
Block user comment: N
Private report: N
New Comment:
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' ) );
Previous Comments:
------------------------------------------------------------------------
[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