I have this string ”Good morning, Dave”
. This string contains two non standard double quotes.
Whenever I try to insert into my database table it is converted to this string %u201DGoodmorning,Dave%u201D
I try to replace this kind of character using preg_replace
but they are not helpful.This is what I have tried
1) preg_replace('/[^a-zA-Z0-9_ %\[\]\.\(\)%&-]/s', '', $String);
2) preg_replace('#[^\w()/.%\-&]#',"",$string);
I also Try mysql_real_escape_string
, but is is also not helpful. How can I do this?