Habari\MultiByte::hab_encoding PHP Method

hab_encoding() public static method

Sets and returns the internal encoding.
public static hab_encoding ( $use_enc = null ) : string.
$use_enc string. The encoding to be used
return string.
    public static function hab_encoding($use_enc = null)
    {
        if ($use_enc === null) {
            return self::$hab_enc;
        } else {
            $old_enc = self::$hab_enc;
            self::$hab_enc = $use_enc;
            return $old_enc;
        }
    }