Hi I'm having some difficulty with escaping double quoutes from a string.
Here's my situation:
I get the the result set from the database then I apply utf8_encode
to it because there's latin/accented characters and it return the string as it should be exept the double quotes in the begin and end of the string.
If in the DB I have: "Olá João"
it returns: Olá João
. The double quotes are ignored
$rs = mysql_fetch_array($query)
$text = utf8_encode($rs['l_reference']);
echo $text;
I tried using addslashes
but without success.