MDL-59005 resource: fixed zip extraction for filenames in CP-1251/CP-866

This commit is contained in:
Vladimir Zhirov 2017-05-20 20:43:51 +04:00 committed by Simey Lameze
parent 6bb80a1917
commit ff2dab4566

View File

@ -662,6 +662,7 @@ class zip_archive extends file_archive {
case 'ISO-8859-6': $encoding = 'CP720'; break;
case 'ISO-8859-7': $encoding = 'CP737'; break;
case 'ISO-8859-8': $encoding = 'CP862'; break;
case 'WINDOWS-1251': $encoding = 'CP866'; break;
case 'EUC-JP':
case 'UTF-8':
if ($winchar = get_string('localewincharset', 'langconfig')) {