I have built a CMS to change content on a webpage, however, 90% of the content is givin to me in MS .docx format, and the people who write the content use lots of special characters.
Here is what I have to switch them over:
$content = $_REQUEST['pg_u_content'];
$content = ereg_replace("’","'",$content);
$content = ereg_replace("”","\"",$content);
$content = ereg_replace("“","\"",$content);
$content = ereg_replace("–","-",$content);
$content = ereg_replace("é","e",$content);
is there an easier way? It seems that their would be...