#29318 [Opn->Fbk]: Can't encode to HTML Entities from UTF-8
| From: | moriyoshi@php.net | Date: | Fri, 23 Jul 2004 01:30:53 +0000 |
| Subject: | #29318 [Opn->Fbk]: Can't encode to HTML Entities from UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-63392@lists.php.net to get a copy of this message | ||
ID: 29318
Updated by: moriyoshi@php.net
Reported By: atlantisboydn at yougotmail dot com
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Windows XP SP1
PHP Version: 5.0.0
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
<?php
$escaped = html_entity_decode('€aä',
ENT_QUOTES, 'UTF-8');
var_dump($escaped);
var_dump(mb_convert_encoding($escaped, 'HTML-ENTITIES',
'UTF-8'));
?>
string(6) "aä"
string(13) "€aä"
Works fine here.
Previous Comments:
------------------------------------------------------------------------
[2004-07-22 11:08:55] atlantisboydn at yougotmail dot com
Description:
------------
The following script works fine with PHP 4.3.x, but the returned string
don't output in HTML-Entities format in PHP 5.0.0
$str = mb_convert_encoding($str, "HTML-ENTITIES","UTF-8");
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29318&edit=1