Re: Displaying HTML characters in real format
| From: | Satyam | Date: | Tue, 17 Jul 2007 21:42:18 +0000 |
| Subject: | Re: Displaying HTML characters in real format | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259040@lists.php.net to get a copy of this message | ||
Unless you have set the character encoding of the document to the same as what you have, say, in the database, you would have trouble showing, for example, your last name, with that umlaut. Anyway, I would read the comments for the function because I believe there are some issues beyond the characters handled by htmlspecialchars. I just prefer to set the character encoding compatible from end to end.
Satyam
----- Original Message ----- From: "Nisse Engström" <news.NOSPAM.0ixbtqKe@luden.se>
To: <php-general@lists.php.net>
Sent: Tuesday, July 17, 2007 9:03 PM
Subject: Re: [PHP] Displaying HTML characters in real format
On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), "Richard Lynch" wrote:htmlspecialchars ONLY escapes four characters: < > & " htmlentities escapes ALL characters that need itWhat characters other than the four (or five) NEED escaping, and why? /Nisse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/904 - Release Date: 16/07/2007 17:42