Skip to content

Commit 95b702f

Browse files
authored
Merge pull request #698 from OfficeDev/main
[admin] Publish
2 parents 3f2c156 + 25bcbe4 commit 95b702f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/resources/samples/convert-csv.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Convert CSV files to Excel workbooks
33
description: Learn how to use Office Scripts and Power Automate to create .xlsx files from .csv files.
4-
ms.date: 11/30/2023
4+
ms.date: 01/04/2024
55
ms.localizationpriority: medium
66
---
77

@@ -180,3 +180,9 @@ If your file has hundreds of thousands of cells, you could reach the [Excel data
180180

181181
> [!WARNING]
182182
> If your CSV file is very large, you may have problems [timing out in Power Automate](../../testing/platform-limits.md#power-automate). You'll need to divide the CSV data into multiple files before converting them into Excel workbooks.
183+
184+
### Accents and other unicode characters
185+
186+
Files with unicode-specific characters, such as accented vowels like `é`, need to be saved with the correct encoding. Power Automate's OneDrive connector file creation defaults to ANSI for .csv files. If you're creating the .csv files in Power Automate, you'll need to add the [byte order mark (BOM)](https://en.wikipedia.org/wiki/Byte_order_mark) before the comma-separated values. For UTF-8, replace the file contents for the write .csv file operation with the expression `concat(uriComponentToString('%EF%BB%BF'), <CSV Input>)` (where `<CSV Input>` is your original CSV data).
187+
188+
Note that this sample doesn't create the .csv files in the flow, so this change needs to happen in your custom part of the flow. You could also read and rewrite the .csv files with the BOM, if you don't control how those files are created.

0 commit comments

Comments
 (0)