Laguage support in creating json from php -
i json in korean. language of aap english. problem replace korean language ?????
. code snippet is:
<?php $mysqli = new mysqli ( '50.62.209.85:3306', 'local', 'root123', 'android'); // check if album id posted parameter $myq = $mysqli ->query ( 'select id, url, name hollywoodmovies' ); while ( $myr = $myq->fetch_assoc () ) { $array["items"][] = (array( 'id' => $myr['id'], 'id' => $myr['url'], 'title' => $myr['name'], )); } echo json_encode($array); ?>
string json_encode ( mixed $value [, int $options = 0 [, int $depth = 512 ]] )
for paramater value:
all string data must utf-8 encoded
check if data encoded in utf-8
Comments
Post a Comment