public static function specialtoascii($text, $charset='utf-8') {
        $charset = self::parse_charset($charset);
        $oldlevel = error_reporting(E_PARSE);
        $result = self::typo3()->specCharsToASCII($charset, (string)$text);
        error_reporting($oldlevel);
        return $result;
    }
public static function specialtoascii($text, $charset='utf-8') {
        $charset = self::parse_charset($charset);
        $oldlevel = error_reporting(E_PARSE);
        $result = self::typo3()->specCharsToASCII($charset, (string)$text);
        error_reporting($oldlevel);
        return $result;
    }
public static function specialtoascii ( $ text , $ charset = 'utf-8' ) { $ charset = self :: parse_charset ( $ charset ) ; $ oldlevel = error_reporting ( E_PARSE ) ; $ result = self :: typo3 ( ) -> specCharsToASCII ( $ charset , ( string ) $ text ) ; error_reporting ( $ oldlevel ) ; return $ result ; }
Try to convert upper unicode characters to plain ascii,
the returned string may contain unconverted unicode characters.

@param string $text input string
@param string $charset encoding of the text
@return string converted ascii string
Try to convert upper unicode characters to plain ascii the returned string may contain unconverted unicode characters .