Take the 2-minute tour ×  How can i vanish out the odd string
like � in php?  i already use like html_entity_decode php
function but it's still not works.  anyone can help ?
share|improve this question This is an encoding problem. Do you
have a <meta charset that is consistent with what your server
sends? –  PhpMyCoder Jul 17 '12 at 3:56 This is usually caused
by mixed character encodings. Make sure the page's character
encoding is the same as the server. –  pyrokinetiq Jul 17 '12 at
3:57 fix the problem not the symptoms –  Dagon Jul 17 '12 at
3:58 FYI, the character '�' is U+FFEF, "REPLACEMENT CHARACTER".
–  Keith Thompson Jul 17 '12 at 4:02 posting some relevant codes
might help –  deex Jul 17 '12 at 4:03  4 Answers 4  up vote 4
down vote accepted  Try to add these line in your db config
file.  if (!$con) mysql_select_db("db_name", $con);
share|improve this answer that's make my day... –  Gunslinger_
Jul 17 '12 at 6:28 You might want to consider upgrading to PDO
-- the old style SQL functions are horribly