Re: HTML equivalents of accented characters
| From: | Ivo Fokkema | Date: | Wed, 13 Aug 2003 07:52:48 +0000 |
| Subject: | Re: HTML equivalents of accented characters | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159406@lists.php.net to get a copy of this message | ||
"Liam Gibbs" <liamgibbs@sympatico.ca> wrote in message
news:005f01c36114$884d66c0$4d59fea9@TeletranOne...
> > 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.
I bet they do, did you check the HTML source as well? My guess is that the
source is reading the actual expected output, but your browser views "é", as
it should of course.
HTH,
--
Ivo