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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -