Bug #3553
openimporting zip-file
100%
Description
installation: waldorf stable
When I upload a zip-file with documents in French, with accents in the title such as élève.docx, all the letters with accents disappear. If I upload the same docx file by file, the titles are well displayed.
see zip-file attached.
Files
Updated by Sven Vanpoucke almost 12 years ago
When unzipping the file we need to write the files temporary to the file system. Due to encoding issues we need to remove all the special characters from the file. I propose you give your files another filename to avoid this problem.
When uploading a single file this is not an issue because the file name is directly moved to the database without the bypass on the file system.
Updated by Sven Vanpoucke almost 12 years ago
- Status changed from New to Needs more info
Updated by Sven Vanpoucke almost 12 years ago
I found a solution for when the zip is made in windows (dos encoding: CP437). I don't know how this will work when zip's are imported from linux, mac...
Updated by dominique de guchtenaere almost 12 years ago
If you push this solution to the stable, we will check it from linux. You can check it from the mac in your office.
Updated by Sven Vanpoucke almost 12 years ago
The code is on the stable.
I can confirm that this works for MAC OSX
Updated by dominique de guchtenaere almost 12 years ago
Thanks!
We tested it with Linux, and there it works partialy: if the first letter is a special character, this one is deleted, the other letters with special characters are well displayed.
Updated by dominique de guchtenaere over 11 years ago
I just retested this, and I still have the same problem, not with the file léger.docx but with the file élèves.docx. In this last file, the first letter disapeared after importing the zip-file.
Updated by Stefaan Vanbillemont over 11 years ago
- Target version changed from 2.1.0 to Backlog (default)
Updated by dominique de guchtenaere almost 11 years ago
- File table_view_in_repo.png table_view_in_repo.png added
- File octet_stream.png octet_stream.png added
- File léger.zip léger.zip added
- File élèves.png élèves.png added
- File léger.png léger.png added
- Status changed from Needs more info to New
In the current c3 dev version, this doesn't work.
When I upload the zipped file with two files : élèves.docx and léger.docx in it, the upload works, but neither the title or the description are visible (see screen shot)
When I click the vertical sign, I get the following message: this is an application/octet-stream
After download, when I change the extension to docx, I can view the document
Importing a single document such as léger.docx or élèves.docx gives the following problem: lèves.docx ; the file léger.docx is well imported, but when opening it I see léger
Tested on a windows computer
Updated by dominique de guchtenaere over 10 years ago
- Target version changed from Backlog (default) to LCMS 3.1
still the same issue on our installation e-perspectief.
Updated by Anonymous almost 10 years ago
- Status changed from New to Needs testing
- Assignee changed from Sven Vanpoucke to Anonymous
- % Done changed from 0 to 100
Some minor changes were necessary:
- uses Document instead if File
- some refactoring
- fix for path separator on Windows