#29318 [Com]: Can't encode to HTML Entities from UTF-8
| From: | pieroconti182 at hotmail dot com | Date: | Mon, 05 May 2008 17:37:38 +0000 |
| Subject: | #29318 [Com]: Can't encode to HTML Entities from UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124730@lists.php.net to get a copy of this message | ||
ID: 29318
Comment by: pieroconti182 at hotmail dot com
Reported By: atlantisboydn at yougotmail dot com
Status: No Feedback
Bug Type: mbstring related
Operating System: Windows XP SP1
PHP Version: 5.0.0
New Comment:
yeah, i have a bug with that, when i want to do that
if(htmlentities($recado) !== $recado )
but, if i use ç or ã, this code convert that to entities, and i dont
want this.
Previous Comments:
------------------------------------------------------------------------
[2004-10-16 01:00:05] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-10-08 16:11:44] moriyoshi@php.net
Hi there.
(1) $a = mb_convert_encoding($a, 'UTF-8','SJIS');
(2) $a = mb_convert_encoding($a, 'HTML-ENTITIES','UTF
-8');
Assuming you got correct result from example (1), you
seem to be converting a sequence of SJIS-encoded data
into HTML-ENTITIES while setting the source encoding to
"UTF-8" in example (2), which will never produce correct
result.
It may be a bit too late to say, though...
------------------------------------------------------------------------
[2004-08-02 18:08:09] ross at golder dot org
This sounds like a duplicate of :
http://bugs.php.net/bug.php?id=25670
I'm still struggling with this one.
------------------------------------------------------------------------
[2004-07-31 12:49:04] atlantisboy at yougotmail dot com
I really don't why noone consider this bug ???
------------------------------------------------------------------------
[2004-07-31 12:41:17] johnmcklein at hotmail dot com
I also face this problem , how to fix it ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29318
--
Edit this bug report at http://bugs.php.net/?id=29318&edit=1