title: how come MySQL bit data type php print unicode?
body: <p>When my MySQl Data Type is bit(1) ,but when printed with php <code>json_encode</code> will write with unicode? IIS are working fine,<br>
   but in my dedicated server Apache hosting will become unicode. WHY?
  <img src="https://i.stack.imgur.com/bbiIr.jpg" alt="enter image description here"></p>
  
  <p>you can see the <code>Locating</code>, <code>Locating</code> on Mysql data type is bit, but printed \u0001? why?</p>
  
  <p>this is my coding GET method <code>get-googlemarker.php</code> to get this result</p>
  
  <pre><code>&lt;?php
  mysql_connect("localhost", "root", "123456") or die("Could not connect");
  mysql_select_db("db_gps") or die("Could not select database");
  
  $parent_id = $_GET['mainid'];
  
  $query = "SELECT        *
  FROM          tbl_locate AS a
  INNER JOIN     
  (
      SELECT    MainID, Max(DateTime) AS DateTime
      FROM      tbl_locate
      GROUP BY  MainID
  ) AS b
  ON            a.MainID = b.MainID
  AND           a.DateTime = b.DateTime
  LEFT JOIN     
  (
      SELECT b.PicData
       , b.PicUploadedDateTime
       , b.MainID
    FROM (SELECT    MainID,Max(PicUploadedDateTime) as PicUploadedDateTime
          FROM      tbl_picture
          group by MainID
         ) l
    JOIN tbl_picture b
      ON b.MainID = l.MainID AND b.PicUploadedDateTime = l.PicUploadedDateTime
  ) AS c
  ON            a.MainID = c.MainID";
  
  $rs = mysql_query($query);
  
  $arr = array();
  while($obj = mysql_fetch_object($rs)) {
   $arr[] = $obj;
  }
  
  echo json_encode($arr);
  
  
  ?&gt;
  </code></pre>
  
  <h2>UPDATED</h2>
  
  <p>the representation data are correct, but the problem is when i m using below javascript i can't read the Locating value, 
  i have tried <code>alert</code> the record, but is blank.i have tried Locating with <code>type:string</code> , <code>type:bit</code> , <code>type:bytes</code> , <code>type:int</code> ,<br>
  but does not work. can't show anything in <code>alert</code></p>
  
  <pre><code>Ext.define('GoogleMarkerModel', {
          extend: 'Ext.data.Model',
          fields: [
          {name: 'ID',    type: 'int'},
          {name: 'Locating',    type: 'int'},
          {name: 'MainPower',    type: 'int'},
          {name: 'Acc',    type: 'int'},
          {name: 'PowerOff',    type: 'int'},
          {name: 'Alarm',    type: 'int'},
          {name: 'Speed',    type: 'int'},
          {name: 'Direction',    type: 'int'},
          {name: 'Latitude',    type: 'float'},
          {name: 'Longitude',    type: 'float'},
          {name: 'DateTime',    type: 'datetime'},
          {name: 'MainID',    type: 'int'},
          {name: 'IOState',    type: 'int'},
          {name: 'OilState',    type: 'int'},
          {name: 'PicUploadedDateTime',    type: 'datetime'},
          {name: 'PicData',    type: 'str'}
          ]
      });
  </code></pre>