I have a large number of compressed files (ZIP) stored in different directories. For some reason, I want to be able to read all the CSV files in the compressed files directly, but do not unzip it.
Now, I can only read the file list in the compressed file. What should I do next?
I tested it with the ideas provided by Sjoerd Smit.
In the test, I read two compressed files.
The filename of the data in one compressed file is composed of english and numbers, and the name of the other data contains traditional chinese (but I don’t know why it is garbled).
It turns out that if the data name in the compressed file is not garbled, the data can read normally.
So I think the real problem should be the issue of the filename.
Due to a large of these important historical data, I am improbable to modify the data names in the compressed file one by one.
Therefore, I still need to find a solution to this problem.
If you’re having trouble reading in Chinese characters, I recommend fiddling about with the character encoding. I had a similar problem once that I solve by first setting: