Re: Displaying HTML characters in real format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, July 17, 2007 9:03 PM
Subject: Re:  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 it

What 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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux