-1
我想打印一個包含unicode和html tags的字符串。我使用htmlentities()
來顯示html標籤。但它也編碼unicode。如何解決它?打印一個包含unicode和html標籤的字符串
$str="മലയാളം <html>";
echo $str; (shows മലയാളം)
$str=htmlentities($str);
echo $str; (shows മലയാള� <html>)
謝謝deceze。有用! – Vibhath