ID: 22335 User updated by: caleb_ownz at yahoo dot com Reported By: caleb_ownz at yahoo dot com -Status: Feedback +Status: Open Bug Type: Strings related Operating System: Windows PHP Version: 4.3.0 New Comment:
hmm after checking some more research i noticed that this happens only when the browser encoding != language you are writing. So if you write in hebrew when the browser is set to encode Western European you will get something similar to this: "עברית" although i did solve all these problems by calling html_entities_decode() but still.. why should htmlspecialchars() encode anything but the SPECIAL chars, and not language chars.. ωμεν becomes שלום Previous Comments: ------------------------------------------------------------------------ [2003-02-20 17:25:17] [EMAIL PROTECTED] Could you please supply a simple string with which the problem occures. ------------------------------------------------------------------------ [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