Use opts.codepage as default encoding for DBF

This commit is contained in:
Бронякин Даниил 2021-07-22 14:59:49 +03:00
parent 3542d62fff
commit c56347eff5
2 changed files with 2 additions and 2 deletions

@ -89,7 +89,7 @@ function dbf_to_aoa(buf, opts)/*:AOA*/ {
if(ft != 0x02) fpos = d.read_shift(2);
var rlen = d.read_shift(2);
var /*flags = 0,*/ current_cp = 1252;
var /*flags = 0,*/ current_cp = opts.codepage || 1252;
if(ft != 0x02) {
d.l+=16;
/*flags = */d.read_shift(1);

2
xlsx.js generated

@ -6992,7 +6992,7 @@ function dbf_to_aoa(buf, opts) {
if(ft != 0x02) fpos = d.read_shift(2);
var rlen = d.read_shift(2);
var /*flags = 0,*/ current_cp = 1252;
var /*flags = 0,*/ current_cp = opts.codepage || 1252;
if(ft != 0x02) {
d.l+=16;
/*flags = */d.read_shift(1);