JArchive encoding - unpacking zip with non-ASCII - Joomla! Forum - community, help and support
hi everyone.
i'm running joomla 3.7.5 + apache 2.2, centos 6.9.
and i'm using component uploads , unpacks zip archives, utilizing jarchive class:
and incorrectly creates files , directories contain non-ascii symbols.
i've found out problem not in jarchive class in users' archivers: prefer local charset (windows cyrillic, cp1251) , use unicode if there no such symbol in charset.
it impossible oblige users change way create archives, need somehow change jarchive default charset cp1251. stuck, setting should change? apache, php, or system-wide? ideas?
thanks in advance.
i'm running joomla 3.7.5 + apache 2.2, centos 6.9.
and i'm using component uploads , unpacks zip archives, utilizing jarchive class:
code: select all
$zip = jarchive::getadapter('zip');
$zip->extract($data['tmp_name'], $tmpfolder);
and incorrectly creates files , directories contain non-ascii symbols.
i've found out problem not in jarchive class in users' archivers: prefer local charset (windows cyrillic, cp1251) , use unicode if there no such symbol in charset.
it impossible oblige users change way create archives, need somehow change jarchive default charset cp1251. stuck, setting should change? apache, php, or system-wide? ideas?
thanks in advance.
sorry, there no way mess charset in archive adapters.
Comments
Post a Comment