[prev in list] [next in list] [prev in thread] [next in thread]
List: php-i18n
Subject: [PHP-I18N] Re: htmlentities() and charset
From: 210.154.73.126
Date: 2002-07-24 3:18:34
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic