Re: (#9392) Re: htmlspecial chars & htmlentities do not handle double byte charactersets
| From: | Wez Furlong | Date: | Tue, 21 Aug 2001 15:27:47 +0000 |
| Subject: | Re: (#9392) Re: htmlspecial chars & htmlentities do not handle double byte charactersets | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63979@lists.php.net to get a copy of this message | ||
On 21/08/01, "Wez Furlong" <wez@thebrainroom.com> wrote:
> If you have nl_langinfo on your system, this php code should work
> with the chinese characters:
> <?php
> setlocale(LC_ALL,"zh_TW");
> echo htmlentities("chinese text", ENT_COMPAT, null);
> ?>
Actually, I think I meant:
echo htmlentities("chinese text", ENT_COMPAT, "");
--Wez.