|
From: Ben C. <php...@be...> - 2002-04-15 12:57:19
|
Of course that third argument is only in PHP >= 4.1.0, so if it does work, we just made a new requirement. :( On Mon, Apr 15, 2002 at 04:48:30AM -0700, Ben Curtis wrote: > These two functions replace certain html characters with their character > code equivalents. They are especially necessary when printing out a > value that may contain a " into the value attribute of a text input box. > Though I don't have much experience with other charsets, it looks like > the functions take a charset as an optional third option. Jirka, will > you try putting them back in using the charset from cz.php and see if it > works? > > On Mon, Apr 15, 2002 at 10:24:29AM -0000, Jirka Pech wrote: > > I've found possible localisation problem. I don't know exactly, why htmlspecialchars function is used in /bug.php (and other scripts of course, but I've focused on this one), but this function causes a problem with encoding of Czech Language special characters. For example ve have special 'hooked e' character, which is converted to something else by this function and displayed incorrectly with 'htmlentities' attribute in template bugdisplay.html. > > > > I'm not sure if these may be removed (e.g. for security reasons), but everything works ok for me, if I've removed htmlspecialchars function from /bug.php (in function do_form) and htmlentities attribute from /templates/default/bugdisplay.html (on line 108). > > > > Jirka > > |