Re: htmlentities() and charset
| From: | Yasuo Ohgaki | Date: | Wed, 24 Jul 2002 03:18:34 +0000 |
| Subject: | Re: htmlentities() and charset | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-296@lists.php.net to get a copy of this message | ||
A . H . S . Boy wrote:
If I submit the Greek text, it goes into my MySQL database just fine. To display it, I'm calling nl2br(htmlentities($body,ENT_COMPAT,'ISO-8859-7')); and the result in my browser is ÕðÜñ÷ïõí éóôïñéêÜ... (Random Latin 1 accented characters, not Greek). If, however, I change the htmlentities() call to htmlspecialchars(), still with the character set specified, it renders properly in my browser, in Greek. Is this a bug in htmlentities? I'm using PHP 4.2.2, just released, so if it's a bug, it hasn't been fixed yet.Pointer must be pointing somewhere eles or like... Search Bug DB and if it's not fixed, submit bug with short & complete script. -- Yasuo Ohgaki