Edit report at http://bugs.php.net/bug.php?id=33748&edit=1
ID: 33748 Updated by: cataphr...@php.net Reported by: jbrzeski at ssn dot pl Summary: htmlentities('ź',ENT_COMPAT,'UTF-8')) returns 'ƒ' -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: LINUX PHP Version: 5.0.4 Block user comment: N New Comment: It gives ź as exepected. Even with the "no double encoding" arg it wouldn't make sense to transform the entity. Previous Comments: ------------------------------------------------------------------------ [2005-07-18 14:14:44] 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) ------------------------------------------------------------------------ [2005-07-18 13:12:00] jbrzeski at ssn dot pl Description: ------------ $value="ź"; htmlentities($value,ENT_COMPAT,'UTF-8')); returns 'ƒ' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=33748&edit=1