Re: HTML equivalents of accented characters
| From: | Liam Gibbs | Date: | Tue, 12 Aug 2003 20:58:50 +0000 |
| Subject: | Re: HTML equivalents of accented characters | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159335@lists.php.net to get a copy of this message | ||
> I think php.net/htmlentities will do this.
Apparently it *is*, but it won't for me. Any problems with this code?
$result[] = "é";
$result[1] = htmlspecialchars($result[0]);
$result[2] = htmlentities($result[0]);
Both return the accented E unchanged.