Re: Preventing unwanted chars from outputting
| From: | Larry Garfield | Date: | Sun, 18 Mar 2007 18:58:43 +0000 |
| Subject: | Re: Preventing unwanted chars from outputting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250787@lists.php.net to get a copy of this message | ||
On Sunday 18 March 2007 5:57 am, Don Don wrote:
> Hi all,
> my program outputs some characters along with text from the database,
> these texts contain chars like â â. How can i get rid of theses chars
> and display their meaning instead ? I am thinking htmlspecialchars or html
> entities will do the job will it ?
>
>
> Cheers
It sounds like you're running into character encoding issues. They suck. :-)
See here for details:
http://www.garfieldtech.com/blog/stupid-quotes
http://www.garfieldtech.com/blog/more-on-stupid-quotes
http://www.garfieldtech.com/blog/unicode-8-vs-16
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson