Fix: #14837 - Use charset 'windows-1252' when format is MS Excel

Fixes: #14837
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-03-02 11:09:26 +01:00
commit d93bda0785
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -308,6 +308,16 @@ AJAX.registerOnload('export.js', function () {
}
});
// When MS Excel is selected as the Format automatically Switch to Character Set as windows-1252
$('#plugins').change(function () {
var selected_plugin_name = $('#plugins').find('option:selected').val();
if (selected_plugin_name === 'excel') {
$('#select_charset').val('windows-1252');
} else {
$('#select_charset').val('utf-8');
}
});
// For separate-file exports only ZIP compression is allowed
$('input[type="checkbox"][name="as_separate_files"]').on('change', function () {
if ($(this).is(':checked')) {