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); ?> 

json_encode documentation

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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -