File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,9 @@ export class ExcelReportProcessor {
160160 */
161161 private enableFullCalcOnLoad ( workbook ) : void {
162162 workbook . workbook . calcPr [ '@_fullCalcOnLoad' ] = '1' ;
163- this . zip . updateFile ( 'xl/workbook.xml' , this . builder . build ( workbook ) ) ;
163+ const xmlString = this . builder . build ( workbook ) ;
164+ const xmlBuffer = Buffer . from ( xmlString , 'utf8' ) ;
165+ this . zip . updateFile ( 'xl/workbook.xml' , xmlBuffer ) ;
164166 }
165167
166168 /**
@@ -251,7 +253,10 @@ export class ExcelReportProcessor {
251253 resultColumn . v = valueMap [ status ] ;
252254 }
253255 } ) ;
254- this . zip . updateFile ( sheetPath , this . builder . build ( sheet ) ) ;
256+
257+ const xmlString = this . builder . build ( sheet ) ;
258+ const xmlBuffer = Buffer . from ( xmlString , 'utf8' ) ;
259+ this . zip . updateFile ( sheetPath , xmlBuffer ) ;
255260 }
256261
257262 /**
You can’t perform that action at this time.
0 commit comments