[PHP-I18N] Re: htmlentities() and charset From: Yasuo Ohgaki (yohgaki <email protected>)
Date: 07/23/02

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

-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php