mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #460] Bug if worksheet names has specials chars like "é" (French letters) #358
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#358
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PyrosBrother on GitHub (Oct 25, 2024).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/460
Originally assigned to: @jmcnamara on GitHub.
Issue with french characters in worksheet name. All is writen on disk but Excel doesn't want ton open the created file (Error : "Content is Unreadable. Open and Repair").
I am using MSVC 2022, OS = Windows 11 Pro (and Excel 2021 to open the created file) and libxlsxwriter 1.1.8.
Here is some code that demonstrates the problem:
@jmcnamara commented on GitHub (Oct 25, 2024):
It should work as expected if the file is UTF-8 encoded. That is the only encoding supported by Excel. Here is the output from your sample code, unedited, compiled with clang on macOS:
@PyrosBrother commented on GitHub (Oct 28, 2024):
Hello,
Thank you for your answer.
You're right with UTF8 string conversion all is correct.
Sorry to miss that and for the noise.
Maybe a FAQ to remember that all the strings should be UTF8 encoded will be a idea ?
Your lib is wonderful and helps a lot.
Regards.
@jmcnamara commented on GitHub (Oct 28, 2024):
@PyrosBrother Thanks for the feedback. I'm glad you sorted it out.