Find and replace weird characters in the_content [closed]

You could try this:

<?php
function replace_content($content)
{
  $search  = array('&', 'é', '—', '‘', '’', '“', '”');
  $replace = array('&', 'é', '—', '‘', '’', '“', '”');

  $content = str_replace($search, $replace, $content);
  return $content;
}

?>

Credit to Harry on WordPress forums