Using php version 7.4.1. Tried to convert the below data to JSON, but it neither returned anything nor any error shown. Could you please advise how to handle the superscript char 'tm' while JSON encoding?
$a['code'] ='hello';
$a['name'] = 'All categories';
$a2 = array("catid"=>140,"catName"=>'Silk Touch™');
$a['options'] = $a2;
echo "JsonData: ", json_encode($a), "\n";