src/helpers/BaseYii.php
public static function getEncoding(ContainerInterface $container = null): string
    {
        $i18n = static::get('i18n', $container, false);

        return $i18n ? $i18n->getEncoding() : mb_internal_encoding();
    }
public static function getEncoding(ContainerInterface $container = null): string
    {
        $i18n = static::get('i18n', $container, false);

        return $i18n ? $i18n->getEncoding() : mb_internal_encoding();
    }
public static function getEncoding ( ContainerInterface $ container = null ) : string { $ i18n = static :: get ( 'i18n' , $ container , false ) ; return $ i18n ? $ i18n -> getEncoding ( ) : mb_internal_encoding ( ) ; }
Returns current application encoding.
@param ContainerInterface|null $container
@return string
Returns current application encoding .