title: Error in reading data with single and double quotes
body: <p>I have data of questions in mysql DB, lots of which contains single and double quotes. 
  For example: </p>
  
  <pre><code>Which of the following statements create a dictionary?
  1. d = {}
  2. d = {“john”:40, “peter”:45}
  3. d = {40:”john”, 45:”peter”}
  4. All of the mentioned
  Correct: D
  </code></pre>
  
  <p>On retrieving data using select statement in php file, this is what I am getting.This is output of print_r</p>
  
  <pre><code>MCQ [questionText] =&gt; Which of the following statements create a dictionary? [1] =&gt; Which of the following statements create a dictionary? [mcqanswer1] =&gt; d = {} [2] =&gt; d = {} [mcqanswer2] =&gt; d = {�john�:40, �peter�:45} [3] =&gt; d = {�john�:40, �peter�:45} [mcqanswer3] =&gt; d = {40:�john�, 45:�peter�} [4] =&gt; d = {40:�john�, 45:�peter�} [mcqanswer4] =&gt; All of the mentioned [5] =&gt; All of the mentioned [correctAnswer] =&gt; D
  </code></pre>
  
  <p>Basically it is converting all single and double quotes. 
  Can someone suggest me what do I need to do. Thanks. </p>