spreadsheet import utf8 emoji support (#5720)

fixes https://github.com/twentyhq/twenty/issues/5476

took some time to find the right spot, but ChatGPT was helpful enough in
this case 😄

<img width="311" alt="Screenshot 2024-06-03 at 20 24 26"
src="https://github.com/twentyhq/twenty/assets/19856731/4ea0188b-bee5-4a4f-a8af-2630e3b1c373">
This commit is contained in:
rostaklein 2024-06-03 21:26:08 +02:00 committed by GitHub
parent 671de4170f
commit dcd769f20f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,6 +124,7 @@ export const DropZone = ({ onContinue, isLoading }: DropZoneProps) => {
const arrayBuffer = await readFileAsync(file);
const workbook = XLSX.read(arrayBuffer, {
cellDates: true,
codepage: 65001, // UTF-8 codepage
dateNF: dateFormat,
raw: parseRaw,
dense: true,