Commit 1eca474
authored
PLU-517: add BOM for excel to handle csv files (#1095)
## Problem
User reported seeing special characters when opening .csv files from the
Tiles export in Excel.
This was caused by Excel not correctly handling the UTF-8 encoded files.
## Solution
Prepend BOM (`\uFEFF`) to the CSV string before exporting.
## Before & After Screenshots
**Tiles**
<img width="5088" height="3404" alt="image"
src="https://github.com/user-attachments/assets/eb24ffc4-807f-4003-bf1d-ee11e2aeaa54"
/>
**BEFORE**:
<img width="297" height="535" alt="Screenshot 2025-07-14 at 2 22 17 PM"
src="https://github.com/user-attachments/assets/475fc75f-07cc-42e4-a36f-33d2a40f2668"
/>
**AFTER**
<img width="312" height="546" alt="Screenshot 2025-07-14 at 2 21 41 PM"
src="https://github.com/user-attachments/assets/0dfacb77-f6fe-420c-aab2-eb309efc4946"
/>
## Tests
- [ ] Special characters are decoded properly when opening the .csv in
Excel (e.g., `—`)
- [ ] Rows are exported and in order
- [ ] Columns are exported and in order
- [ ] Filters are applied accordingly1 parent 12582fd commit 1eca474
File tree
1 file changed
+7
-1
lines changed- packages/frontend/src/pages/Tile/components/TableBanner
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
0 commit comments