public function charset($charset = null) { if (!$charset && @$this->request->params['Site']['device'] == 'mobile') { $charset = 'Shift-JIS'; } echo $this->BcHtml->charset($charset); }