PHP Warning: Invalid UTF-8 sequence in argument in /ajax.php on line 24



Prior to

Code:
      echo json_encode ($result);exit();
should there be something like

Code:
      $result = htmlentities((string)$result, ENT_QUOTES, 'utf-8', FALSE);