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:
commit
d93bda0785
10
js/export.js
10
js/export.js
@ -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')) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user