在我的代碼下面,我試試這個解決方案,但沒有工作。並且我還給utf8_unicode_ci的印地文和utf8_bin古吉拉特語數據庫整理。如何在MySQL中獲取北印度語和古吉拉特語語言的數據?
請幫我看我如何獲取數據印地語&古吉拉特語。
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<?php
session_start();
require_once('config.php');
$JSONoutput = array();
$q=mysqli_query($con,"SELECT * FROM tbl_Hindi");
header('Content-Type: text/html; charset=UTF-8');
while($rs=mysqli_fetch_assoc($q))
{
$JSONoutput['SMS'][] = array("ID"=>$rs['ID'],"Message"=>$rs['Message']);
}
print(json_encode($JSONoutput));
?>
輸出:
{"SMS":[{"ID":"1","Message":"?? ????? ?? ??? ???? ??, ???? ?? ???? ??? ?? ????? ?? ?? ???? ?? ??????"},{"ID":"2","Message":"???? ????? : ??? ???? ?? ? ????? ????? : shopping ???? ?? ??? ???? ????? : : ???? ?? ???? ? ????? ????? : ???? ??? ??? ?? Gf ?? ? ???? ????? : ?? ?? ??? ??? ?? ? ????? ????? : ?? ???? "}]}
我也嘗試這個解決方案,但它不會工作,比我把我的問題 –
希望這個URL有助於哪些步驟涉及:http://stackoverflow.com/questions/12435867/how-to-store-the-data -in-unicode-in-hindi-language – Senthil
希望這個URL有助於哪些步驟涉及到:http://stackoverflow.com/questions/12435867/how-to-store-the-data-in-unicode-in-hindi -language – Senthil