-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Opening a file and saving it corrupts the file #1666
Comments
Thanks for your issue. It seems this problem has been fixed in the master branch, please try to upgrade the master branch code. If still have this problem, please provide a workbook as attachments without confidential info. |
Sorry my goenv: go env
|
Hi @HerbertNatal, thanks for your feedback. If it does not work with Go 1.21.0, please reference the issues #1465, #1595, #1603, #1608, #1614, #1619, #1620, #1621, #1623, #1633, #1637, #1641, #1642, #1648, #1651, #1652, #1656, #1657, #1660 and #1663. There are some incompatible changes in the Go 1.21.0 encoding/xml library. I have given feedback to the Go team and created a patch for it (golang/go#61881), and it has been fixed on Go 1.21.1. Please using the Go 1.20.7 and previous Go released version or upgrade to Go 1.21.1 and later. I have already added notice on the README and documentation website for this. |
@HerbertNatal Please upgrade to GO 1.21.1 since @xuri already mentioned that 1.20.0 has an issue with xml encoding. also please install excelize librabry this way in your project: go get github.com/xuri/excelize/v2@744236b4b840d71cff471e45f8641d0a682d0292 |
Thank you Xuri, it was version 1.21.0... |
Excelize version : 2.8.0
the following code corrupts the file:
The issue is not there in Excelize 2.7.0
I unzipped the before and after files and did a comparison on them.
These are the changes in
"xl\styles.xml"
that cause the file to be corrupted.Manually reverting these changes and zipping the file fixes the issue.
The text was updated successfully, but these errors were encountered: