Bug #7923 Updated: htmlentities doesn't work for ISO 8859-2

From: Date: Sat, 27 Apr 2002 21:29:20 +0000
Subject: Bug #7923 Updated: htmlentities doesn't work for ISO 8859-2
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6304@lists.php.net to get a copy of this message
ID: 7923 Updated by: jimw@php.net Reported By: muhlig@us.edu.pl -Status: Open +Status: Analyzed Bug Type: Feature/Change Request Operating System: N/A PHP Version: 4.0.3pl1 New Comment: for most if the iso 8859-2 charset, there are no standard html entities, and the current behavior of htmlentities() is to leave such characters unconverted. the real problem is that the current behavior of htmlentities() when passed an unknown charset is to use the iso 8859-1 mapping. it shouldn't try to use a charset mapping in that case. Previous Comments: ------------------------------------------------------------------------ [2000-11-23 07:40:20] stas@php.net BTW: you can use recode("ISO8859-2..h4",$text) for this purpose. See GNU recode extension and recode docs for more information. ------------------------------------------------------------------------ [2000-11-22 08:17:01] muhlig@us.edu.pl From PHP Manual: ... htmlentities... At present, the ISO-8859-1 character set is used. I feel there is strong need to make htmlentities to support other charsets than ISO 8859-1. We, here in Poland for instance, use ISO 8859-2. Many Western/USA freeware programs use (as they of course should) htmlentities. Proper display of our diacritic chars is then impossible. We have to modify sources, removing htmlentities or defining own functions. It's a waste of time and resources. May I ask PHP developers to consider this issue? Maciek ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=7923&edit=1

« previous php.bugs (#6304) next »