Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export csv - Use UTF-8 format with BOM to be compatible with Microsoft Excel #172

Open
FALLAI-Denis opened this issue Oct 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@FALLAI-Denis
Copy link

FALLAI-Denis commented Oct 23, 2024

Description of the feature or enhancement

The IBM Db2 for z/OS Developper extension allows you to save the result of an SQL query in a .csv file.
The purpose of saving such a file is to be able to rework it in a spreadsheet, and a priori most often in Microsoft Excel.
This file is saved in simple UTF-8 format, and Excel does not read it correctly, (visible when using languages ​​other than English, as in my case French).

To be compatible with Microsoft Excel, you must save the file in UTF-8 with BOM (Byte Order Mark).

See: Opening CSV UTF-8 files correctly in Excel

However, the Git documentation advises against using the UTF-8-BOM format... but does not say that it does not work.

Thanks.

@FALLAI-Denis FALLAI-Denis added the enhancement New feature or request label Oct 23, 2024
@ThomasLieser
Copy link

A work-around would be to use a tool like NotePad++ which lets you convert to a file with a UFT-8 BOM

@FALLAI-Denis
Copy link
Author

Hi,

VS Code himself can rewrite file with UTF-8-BOM, (or Windows-1252 for us), but this need an action before opening file with Excel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants