xlsx compressed by rubyzip not readable by Excel
问题 I am working on writing code which can read/write Excel xlsx files. xlsx files are simply zip archives of several xml files, so in order to test out if I could write a file, I used a gem called rubyzip to unzip the xlsx file and then immediately zip it back up to a new archive, without modifying the data. When I do this, however, I cannot open the new excel file, it is said to be corrupted. Alternatively, if I use Mac OS X's Archive Utility (the native application to handle zip files), and I