Code: Select all
$data = str_replace("‘", "'", $data);
$data = str_replace("’", "'", $data);
$data = str_replace("“", '"', $data);
$data = str_replace("”", '"', $data);
$data = str_replace("–", "-", $data);Moderator: General Moderators
Code: Select all
$data = str_replace("‘", "'", $data);
$data = str_replace("’", "'", $data);
$data = str_replace("“", '"', $data);
$data = str_replace("”", '"', $data);
$data = str_replace("–", "-", $data);Well, then your original post lacked quite some information.jazz090 wrote:i know about this function, and when i say it will mess up the mysql, i mean after being escaped by the afformentioned mysql_real_escape_string().
Kohana contains three ascii related functions:jazz090 wrote:a better question would be, how do u use regex to undentify non-ascii chacrters?