php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #33748 htmlentities('ź',ENT_COMPAT,'UTF-8')) returns 'ƒ'
Submitted: 2005-07-18 13:12 UTC Modified: 2010-10-11 02:38 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jbrzeski at ssn dot pl Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.0.4 OS: LINUX
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jbrzeski at ssn dot pl
New email:
PHP Version: OS:

 

 [2005-07-18 13:12 UTC] jbrzeski at ssn dot pl
Description:
------------
$value="ź";
htmlentities($value,ENT_COMPAT,'UTF-8')); returns 'ƒ'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-18 14:14 UTC] jbrzeski at ssn dot pl
>And what did you expect it to return instead?

On input is - Latin Small Letter Z With Acute (Small Z Acute)
On output I expect  	 Latin Small Letter Z With Acute (Small Z Acute)
But function htmlentities($value,ENT_COMPAT,'UTF-8')
returns 'ƒ' instead Latin Small Letter Z With Acute (Small Z Acute)
 [2010-10-11 02:38 UTC] cataphract@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-10-11 02:38 UTC] cataphract@php.net
It gives ź as exepected. Even with the "no double encoding" arg it wouldn't make sense to transform the entity.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 18 16:00:02 2025 UTC