I am using latest PHP and latest MySQL. I have tried htmlspecialchars and mysql_real_escape_string but it inserts ? instead of the special character. I am inserting into varchar and text type fields. Special language characters like őúáűăţşîâ but it maight be other languages' characters.
8
-
What are you trying to insert??Naftali– Naftali2011-12-19 22:18:23 +00:00Commented Dec 19, 2011 at 22:18
-
2Every character is special in its own way.Ignacio Vazquez-Abrams– Ignacio Vazquez-Abrams2011-12-19 22:19:02 +00:00Commented Dec 19, 2011 at 22:19
-
What character are you trying to insert... It sounds like a collation issue. dev.mysql.com/doc/refman/5.5/en/charset-charsets.htmlSparky– Sparky2011-12-19 22:19:48 +00:00Commented Dec 19, 2011 at 22:19
-
3The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)Pekka– Pekka2011-12-19 22:20:39 +00:00Commented Dec 19, 2011 at 22:20
-
Possible duplicate of Special characters in PHP / MySQLPekka– Pekka2011-12-19 22:21:12 +00:00Commented Dec 19, 2011 at 22:21
|
Show 3 more comments