#22335 [Opn->Fbk]: htmlspecialchars() encodes foriegn chars too!

From: Date: Thu, 20 Feb 2003 23:25:18 +0000
Subject: #22335 [Opn->Fbk]: htmlspecialchars() encodes foriegn chars too!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-33761@lists.php.net to get a copy of this message
ID: 22335 Updated by: iliaa@php.net Reported By: caleb_ownz at yahoo dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows PHP Version: 4.3.0 New Comment: Could you please supply a simple string with which the problem occures. Previous Comments: ------------------------------------------------------------------------ [2003-02-20 13:00:33] caleb_ownz at yahoo dot com Hello, The htmlspecialchars() function should only convert SPECIAL chars such as '&' '"' ''' '<' '>'. (at least this is what the documentation says) But this function also seems to convert foriegn language (non-english) chars too which is what htmlentities() basically does. I have tested this on Russian and Hebrew! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22335&edit=1

« previous php.bugs (#33761) next »