From: caleb_ownz at yahoo dot com Operating system: Windows PHP version: 4.3.0 PHP Bug Type: Unknown/Other Function Bug description: htmlspecialchars() encodes foriegn chars too!
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 bug report at http://bugs.php.net/?id=22335&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22335&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22335&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22335&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22335&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22335&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22335&r=support Expected behavior: http://bugs.php.net/fix.php?id=22335&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22335&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22335&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22335&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22335&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22335&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22335&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22335&r=gnused