Cleaning up nasty characters in PHP
Posted
by Simon Hume
on Stack Overflow
See other posts from Stack Overflow
or by Simon Hume
Published on 2010-04-08T09:49:41Z
Indexed on
2010/04/08
9:53 UTC
Read the original article
Hit count: 334
Hi folks,
Got a little issue where my client is pasting in content from Word into my little text editor in a CMS.
The double quotes are coming back encoded in what looks like some form of UTF.
Any ideas if I can strip/replace these using PHP when they get displayed out of my mySQL table.
Here is the link to the page that spits out the dodgy characters, you can see the 'black diamonds of doom' which are causing the headaches.
http://linq.milkbarstudios.com/news_detail.php?id=3
Any suggestions would be greatly accepted!
© Stack Overflow or respective owner