Skip to content

Commit

Permalink
ACP2E-2214: [Cloud] Orders Report export CSV - strange letters
Browse files Browse the repository at this point in the history
  • Loading branch information
dhorytskyi committed Aug 11, 2023
1 parent 7aaa5e4 commit 491e34e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ private function getTablerateCsv(): string
$exportCsv = $gridBlock->setWebsiteId($this->websiteId)->setConditionName('package_weight')->getCsvFile();
$exportCsvContent = $varDirectory->openFile($exportCsv['value'], 'r')->readAll();

$bom = pack('CCC', 0xef, 0xbb, 0xbf);
if (substr($exportCsvContent, 0, 3) === $bom) {
$exportCsvContent = substr($exportCsvContent, 3);
}

return $exportCsvContent;
}
}

0 comments on commit 491e34e

Please sign in to comment.