Possible Duplicate:
Browser displays � instead of ´
On my website, when I copy a block of text from someone else's text document that use different characters, such as the longer dash, and the other kind of quotes apart from '' "" it returns the html junk. such as:
9 am – 4 pm
looks like:
9 am � 4 pm
and
as ‘secrets’, ‘remembering/keeping,’, narratives, and ‘surprises.’
looks like:
as �secrets�, �remembering/keeping,�, narratives, and �surprises.�
my php for inserting the data simply is:
strip_tags($_POST['details']);
and my php for outputting it on the page as html is:
stripslashes(linkify(nl2br(htmlentities($row['body']))));
what am I doing wrong?