src/Controller.php
protected function utf8WithoutBom($string)
    {
        if ($string === null) {
            return null;
        }

        $bom = pack('H*', 'EFBBBF');

        $string = str_replace($bom, '', $string);

        return $string;
    }
protected function utf8WithoutBom($string)
    {
        if ($string === null) {
            return null;
        }

        $bom = pack('H*', 'EFBBBF');

        $string = str_replace($bom, '', $string);

        return $string;
    }
protected function utf8WithoutBom ( $ string ) { if ( $ string === null ) { return null ; } $ bom = pack ( 'H*' , 'EFBBBF' ) ; $ string = str_replace ( $ bom , '' , $ string ) ; return $ string ; }
Remove BOM of UTF8 string

@param string $string

@return string
Remove BOM of UTF8 string