test content
What is the Arc Client?
Install Arc

CSV Exports

emzi0767emzi0767 Member Posts: 20 Arc User
edited July 2015 in Tribble - Bug Reports
Bug:

Fleet CSV exports are useless if somebody puts a comma in their status message, member comment, and presumably if one is put into the officer notes.

Description:

I've been testing the fleet member list export feature on tribble, and it works, however, it has a problem. The export is effectively useless if a comma is used in any of the fields. The CSV format clearly specifies how to handle such cases.

Assuming comma as separator and quotation mark as, well, quotation symbol, as well as three fields, called F1, F2 and F3, respective values being a number, a string and another number, this is how the in-game exporter behaves:

Input data:
F1 = 3
F2 = data "," data , data
F3 = 4

In-game exporter produces output similar to this:

3,data "," data , data,4

Whereas the output should look like this:

3,"data "","" data , data",4

This is important, since there are a lot of players who have those symbols in their member comments, statues or officer notes, and it breaks the export, and I know that this feature will be used extensively.

Additionally, I'd have one more request to make.

The dates in the CSV are exported in US format (MM/dd/yyyy hh:mm am/pm). Is it possible to export them in ISO-8601 format (yyyy-MM-ddTHH:mm:ss+Z) or at least ISO-8601-ish format (something like yyyy-MM-dd HH:mm)?

How to reproduce:
  1. Join a fleet
  2. Open fleet panel, navigate to roster
  3. Put any message, that includes a comma, in your comment
  4. Use /ExportGuildMemberList whatever command
  5. The resulting CSV is not escaped, and hence the line with your character contains one more field, and the entire document is invalid

Regards

Comments

Sign In or Register to comment.