Bug #32338 [Com]: 'UTF-8' badly supported by html_entity_decode ()
| From: | xcoureau at ekino dot com | Date: | Tue, 10 May 2011 10:18:09 +0000 |
| Subject: | Bug #32338 [Com]: 'UTF-8' badly supported by html_entity_decode () | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160646@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=32338&edit=1
ID: 32338
Comment by: xcoureau at ekino dot com
Reported by: webmaster at reddi dot de
Summary: 'UTF-8' badly supported by html_entity_decode ()
Status: No Feedback
Type: Bug
Package: Strings related
Operating System: Linux infong 2.4
PHP Version: 5.0.3
Block user comment: N
Private report: N
New Comment:
Bug still existing. Tested using 5.3.6 and 5.3.3-7
Previous Comments:
------------------------------------------------------------------------
[2005-03-25 01:47:13] sniper@php.net
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 "Open". Thank you.
------------------------------------------------------------------------
[2005-03-18 19:22:56] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
[2005-03-16 16:17:21] webmaster at reddi dot de
Description:
------------
Where
html_entity_decode ( 'ƒ', ENT_NOQUOTES, 'ISO-8859-1')
yields the expected result,
html_entity_decode ( 'ƒ', ENT_NOQUOTES, 'UTF-8')
does NOT.
Reproduce code:
---------------
<?= html_entity_decode ( 'ƒ', ENT_NOQUOTES, 'UTF-8') ; ?>
Expected result:
----------------
/* which is 402 0192 LATIN SMALL LETTER F WITH HOOK (entity name is
ƒ) */
Actual result:
--------------
Ɛ
/* which is 400 0190 LATIN CAPITAL LETTER OPEN E */
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=32338&edit=1