Im using php PDO and trying to insert into the DB a string in hebrew that contains quotas. It inserts the text but keeps turning the quotes('/"/`) to question marks, how can I fix that ?
the code im using:
$this->db->query("SET NAMES 'hebrew'");
$this->db->query("set character_set_client='utf8'");
$this->db->query("set character_set_results='utf8'");
$this->db->query("set collation_connection='utf8'");
$createQuery = $this->db->prepare("INSERT INTO X(Y)VALUES (:name");
//$_POST['string'] = זאת' "בדיקה"
$createQuery->bindParam("name",$_POST['string']);
$createQuery->execute();
Thanks!