Exemplo n.º 1
0
 /**
  * check message
  */
 protected function _checkData()
 {
     // set is unicode to false
     $this->_isUnicode = FALSE;
     // set zero size
     $this->_size = 0;
     // check message
     for ($i = 0; $i < mb_strlen($this->_data, 'UTF-8'); $i++) {
         // get byte
         $byte = Helper::order(mb_substr($this->_data, $i, 1, 'UTF-8'));
         if ($byte > 0xc0) {
             $this->_isUnicode = TRUE;
         }
         $this->_size++;
     }
 }