My following code works fine.
$arr = array();
$str = "Acme® Foundation";
$arr[] = array( "title" => $str);
echo json_encode($arr);
--------- Output is as expected
[{"title":"Acme\u00ae Foundation"}]
but if I retrieve same string from database table then it returns null
$arr = array();
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$str = $row["title"];
$arr[] = array( "title" => $str);
echo json_encode($arr);
--------- Output is not as expected
[{"title":null}]
Can someone please guide as I am very new too php and mysql. If I don't use ® symbol then it works just fine.
TIA,