htmlentities() with utf8
| From: | Marten Lehmann | Date: | Thu, 04 May 2006 16:02:43 +0000 |
| Subject: | htmlentities() with utf8 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-235526@lists.php.net to get a copy of this message | ||
Hello,
I want to use htmlentities() with UTF-8, which I can set with the third parameter. But to use the third parameter, I have to provide the second parameter. Currently the default for the second parameter is ENT_COMPAT. But as this might change, I don't want to call htmlentities with
htmlentities($text, ENT_COMPAT, "UTF-8");
all the time. Is there another way?
Regards
Marten