Re: HTML equivalents of accented characters
| From: | David Nicholson | Date: | Mon, 11 Aug 2003 18:29:42 +0000 |
| Subject: | Re: HTML equivalents of accented characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159169@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Mon, 11 Aug 2003 at
19:18, lines prefixed by '>' were originally written by you.
> I don't think this has been discussed, although I'm not really
sure
> what you would call these accented characters, so I haven't been
able
> to do a complete search of the archives, so apologies if this has
been
> previously discussed.
> Is there a function that not only turns & into &, " into ",
> and the like, but also turns é into é and likewise with other
> accented characters? I know I could easily write one, but why if
one
> already exists?
echo htmlentities("é"); // outputs é
See http://php.net/htmlentities
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Free PHP error handling script: www.phpmachine.com/error-handler/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/