Akeneo\Component\SpreadsheetParser\Csv\RowIterator::getCurrentEncoding PHP Method

getCurrentEncoding() protected method

Returns the server encoding
protected getCurrentEncoding ( ) : string
return string
    protected function getCurrentEncoding()
    {
        $locale = explode('.', setlocale(LC_CTYPE, 0));
        return isset($locale[1]) ? $locale[1] : 'UTF8';
    }