php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26964 htmlentities and html_entity_decode, left&right single quotation mark issues
Submitted: 2004-01-19 07:21 UTC Modified: 2004-01-29 19:56 UTC
From: paj at pearfr dot org Assigned: moriyoshi (profile)
Status: Not a bug Package: Strings related
PHP Version: 5CVS, 4CVS OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paj at pearfr dot org
New email:
PHP Version: OS:

 

 [2004-01-19 07:21 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-20 16:10 UTC] moriyoshi@php.net
This's most likely due to my error.
Assigning it to me.


 [2004-01-29 19:56 UTC] moriyoshi@php.net
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");


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC