function index(){ Configure::write('debug', 2); // set key $key = '#istrip'; // UTF-8 to SJIS $key = mb_convert_encoding($key, "SJIS", "UTF-8"); // to, from // exec $ret = $this->_makeTrip($key); // debug debug($ret); }