#26964 [Asn->Bgs]: htmlentities and html_entity_decode, left&right single quotation mark issues
| From: | moriyoshi@php.net | Date: | Fri, 30 Jan 2004 00:56:08 +0000 |
| Subject: | #26964 [Asn->Bgs]: htmlentities and html_entity_decode, left&right single quotation mark issues | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54156@lists.php.net to get a copy of this message | ||
ID: 26964
Updated by: moriyoshi@php.net
Reported By: paj at pearfr dot org
-Status: Assigned
+Status: Bogus
Bug Type: Strings related
Operating System: *
PHP Version: 5CVS, 4CVS
Assigned To: moriyoshi
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
You must specify the name of the code set in which the
string is represented when you are passing strings
encoded in an encoding other than ISO-8859-1.
echo htmlentities($str, 0, "UTF-8");
Previous Comments:
------------------------------------------------------------------------
[2004-01-20 16:10:08] moriyoshi@php.net
This's most likely due to my error.
Assigning it to me.
------------------------------------------------------------------------
[2004-01-19 07:21:23] paj at pearfr dot org
Description:
------------
Left and right single quotation (’ and ‘) are not converted
correctly (or not recognized). Encode and decode fails.
Reproduce code:
---------------
$str = "Guide de l´utilisateur";
echo htmlentities($str);
Expected result:
----------------
Guide de l’utilisateur
Actual result:
--------------
Guide de l´utilisateur
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26964&edit=1