-
Sub-task
-
Resolution: Fixed
-
Minor
-
2.3
-
MOODLE_23_STABLE
-
MOODLE_24_STABLE
-
wip-
MDL-34074-master -
At the moment moodle csv file don't follow any particular standards which makes exporting into other applications difficult.
For example:
When exporting a database activity in either CSV or Excel format, the text and textarea fields with are not being quoted. Upon opening the CSV or Excel export in Excel, the results span multiple lines when there are line breaks in the data.
The solution to this is to wrap these fields in quotes.
Standards to check:
- DOS-style lines that end with (CRLF) characters
- An optional header record (there is no sure way to detect whether it is present, so care is required when importing).
- Each record "should" contain the same number of comma-separated fields.
- Any field may be quoted (with double quotes).
- Fields containing a line-break, double-quote, and/or commas should be quoted. (If they are not, the file will likely be impossible to process correctly, so this should is better taken as must).
- A (double) quote character in a field must be represented by two double quote characters.
for full details of the RFC 4180 standards:
http://tools.ietf.org/html/rfc4180
- blocks
-
MDL-34336 Alter export to text format SCORM interactions reports to use new csv class.
-
- Closed
-
-
MDL-34337 Alter export to text format SCORM basic reports to use new csv class.
-
- Closed
-
-
MDL-34429 Change log downloads to use the new CSV class
-
- Closed
-
- will help resolve
-
MDL-34076 Create a unit test for exporting and importing rcf 4180 compliant csv files.
-
- Closed
-