2

I would like to json in Korean. The language of my aap is English. The problem is that its replace Korean language to ?????. My code snippet is:

<?php
 $mysqli = new mysqli ( '50.62.209.85:3306', 'local', 'root123', 'android');
// Check if album id is posted as GET parameter
 $myq = $mysqli ->query ( 'SELECT id, url, name FROM HollywoodMovies' );
 while ( $myr = $myq->fetch_assoc () ) {
 $array["items"][] = (array(
'id' => $myr['id'],
'id' => $myr['url'],
'title' => $myr['name'],
));
}
echo json_encode($array);
?>
Cœur
  • 37,241
  • 25
  • 195
  • 267

1 Answers1

0

json_encode documentation

string json_encode ( mixed $value [, int $options = 0 [, int $depth = 512 ]] )

For paramater value:

All string data must be UTF-8 encoded

Check if your data is encoded in UTF-8

Nick Weaver
  • 47,228
  • 12
  • 98
  • 108
openghost
  • 62
  • 3
  • okay thanks but in above code what can i do because i dont know php please help me. – user3445805 Mar 21 '14 at 10:11
  • Okay, but for graphicly manage your database? Creat, edit, view table, etc. – openghost Mar 21 '14 at 17:31
  • So what is the collation of the columns who content text data for the table HollywoodMovies ? You can see that with the following navigation: server -> db -> table -> structure – openghost Mar 22 '14 at 12:21