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

Add UTF-8 BOM to the generated CSV file to prevent encoding issues #7

Open
wants to merge 1 commit into
base: craft-4
Choose a base branch
from

Conversation

watarutmnh
Copy link

This PR adds a UTF-8 Byte Order Mark (BOM) to the beginning of the generated CSV file. This helps to prevent encoding issues when opening the file in software like Microsoft Excel. The changes include:

  • Adding a BOM to the CSV file right after creating it and before writing the headers
  • Updating the file writing process to accommodate the BOM addition
    With these changes, the exported CSV file should display correctly in various applications without encoding issues.

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

Successfully merging this pull request may close these issues.

1 participant