Skip to content

Commit

Permalink
fix: FORMS-883 help excel with bcsans csvs (bcgov#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterMoar authored Jun 18, 2024
1 parent 8dd3d35 commit 98bf7eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/frontend/src/components/forms/ExportSubmissions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ export default {
);
if (response && response.data && !emailExport) {
const blob = new Blob([response.data], {
// Create a UTF-8 Byte Order Mark to handle BC Sans in Excel.
const BOM = new Uint8Array([0xef, 0xbb, 0xbf]);
const blob = new Blob([BOM, response.data], {
type: response.headers['content-type'],
});
const url = window.URL.createObjectURL(blob);
Expand Down

0 comments on commit 98bf7eb

Please sign in to comment.