Moodle

Problems with special caracters in name of files in zip files

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.6.5, 1.6.6, 1.6.7, 1.6.8, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8, 1.8.1, 1.8.2, 1.8.3, 1.8.4, 1.8.5, 1.8.6, 1.8.7, 1.9, 1.9.1, 1.9.2, 1.9.3
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    linux debian stable
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

Description

In the course files, when a "zip file" is decompressed , special caracters ( like éè) are not cleaned by Moodle and
spaces are not replaced with _

This makes it impossible to delete this file by Moodle interface...

Activity

Hide
Vadim Dvorovenko added a comment -

There is a big problem with zip-files containing any non-latin characters. Problems occurs with files zipped under windows, because original encoding is not saved.
One of two solutions neded:
simple - disable file unzipping, if it contains non-lating characters
complex - if it contains non-lating characters, display encoding select page, wich shows list of files with non-latin characters in selected encoding.

Show
Vadim Dvorovenko added a comment - There is a big problem with zip-files containing any non-latin characters. Problems occurs with files zipped under windows, because original encoding is not saved. One of two solutions neded: simple - disable file unzipping, if it contains non-lating characters complex - if it contains non-lating characters, display encoding select page, wich shows list of files with non-latin characters in selected encoding.
Hide
Vadim Dvorovenko added a comment -

Git-patch for solving problem. If any files in archive have characters with code > 127 lists such files and asks to select encoding.
Does not works with external zip/unzip, disable them in setup.
tested on windows xp and ubuntu 9.10 server

Show
Vadim Dvorovenko added a comment - Git-patch for solving problem. If any files in archive have characters with code > 127 lists such files and asks to select encoding. Does not works with external zip/unzip, disable them in setup. tested on windows xp and ubuntu 9.10 server
Hide
Gisele Brugger added a comment -

Moodle 1.9.7 (Build: 20091126)

When I import a course, the directories that have _ (underline) in the name are imported, but with 0 (zero) bytes
No file is imported

Show
Gisele Brugger added a comment - Moodle 1.9.7 (Build: 20091126) When I import a course, the directories that have _ (underline) in the name are imported, but with 0 (zero) bytes No file is imported
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Vadim Dvorovenko added a comment - - edited

Yes, the problem is still actual, but in some other case, maybe it should be created another issue
In 2.x version unzipped filenames are cleaned from "bad" characters.
In this case archives with national-characters filenames becomes unusefull.
For example archive contatis files "яя.doc" and "юю.doc". Only one of them is extracted with name ".doc"
In addition such filenames cleaning breaks links in html-files.

The only right solution in this case is to check whether arcive contains characters with code > 127 and in this case show box for selecting encoding.

Show
Vadim Dvorovenko added a comment - - edited Yes, the problem is still actual, but in some other case, maybe it should be created another issue In 2.x version unzipped filenames are cleaned from "bad" characters. In this case archives with national-characters filenames becomes unusefull. For example archive contatis files "яя.doc" and "юю.doc". Only one of them is extracted with name ".doc" In addition such filenames cleaning breaks links in html-files. The only right solution in this case is to check whether arcive contains characters with code > 127 and in this case show box for selecting encoding.

People

Vote (4)
Watch (2)

Dates

  • Created:
    Updated: