BcBaserHelper::charset PHP Method

charset() public method

モバイルの場合は、強制的に文字コードを Shift-JIS に設定
public charset ( string $charset = null ) : void
$charset string 文字コード(初期値 : null)
return void
    public function charset($charset = null)
    {
        if (!$charset && @$this->request->params['Site']['device'] == 'mobile') {
            $charset = 'Shift-JIS';
        }
        echo $this->BcHtml->charset($charset);
    }