-1

I'm using mysqli_real_escape_string function to avoid sql hacking issues but when I fetch that data from mysql using php, ', " & ’ characters are shown as a question mark sign (�) in output. I'm using

<meta charset="utf-8">

Any suggestions would be appreciated.

Nandla
  • 207
  • 3
  • 13

1 Answers1

2

You can try this:

mysqli->set_charset("utf8"); 

or

query_query("SET NAMES utf8");

Awlad Liton
  • 9,366
  • 2
  • 27
  • 53