MantisBT - ParaView
View Issue Details
0007352ParaView(No Category)public2008-07-17 11:302009-05-13 13:47
Burlen 
Zhanping Liu 
normalminorhave not tried
closedfixed 
 
3.6 
0007352: export csv doesn't handle char data arrays
vtkDataArrays of type char that are written to a csv file should be written as integer data, otherwise it is not readable by spread sheet/text editor. If these arrays are written directly as char's they are likely to contain control characters that are not viewable.
No tags attached.
csv Bug.csv (11,703) 2008-11-18 11:54
https://www.vtk.org/Bug/file/6851/Bug.csv
csv Fix.csv (14,495) 2008-11-18 11:54
https://www.vtk.org/Bug/file/6852/Fix.csv
txt Patch.txt (941) 2008-11-18 11:54
https://www.vtk.org/Bug/file/6853/Patch.txt
Issue History
2008-07-17 11:30BurlenNew Issue
2008-11-14 15:40Utkarsh AyachitStatusbacklog => tabled
2008-11-14 15:40Utkarsh AyachitAssigned To => Zhanping Liu
2008-11-18 11:53Zhanping LiuNote Added: 0014135
2008-11-18 11:54Zhanping LiuFile Added: Bug.csv
2008-11-18 11:54Zhanping LiuFile Added: Fix.csv
2008-11-18 11:54Zhanping LiuFile Added: Patch.txt
2008-11-18 11:56Zhanping LiuStatustabled => @80@
2008-12-22 20:40Alan ScottNote Added: 0014420
2008-12-22 20:40Alan ScottStatus@80@ => closed
2008-12-22 20:40Alan ScottResolutionopen => fixed
2009-05-13 13:47Utkarsh AyachitTarget Version => 3.6
2011-06-16 13:10Zack GalbreathCategory => (No Category)

Notes
(0014135)
Zhanping Liu   
2008-11-18 11:53   
BUG: 0007352 has been fixed. The problem, i.e., the occurrence of weird characters (resulting from char / signed char / unsigned char variables) in an output CSV file,
was caused by vtkCSVExporter::WriteData(...). For these three types (of vtkVariant), the output CSV file contains
characters (see the attached file 'Bug.csv') that cannot be properly shown in a text viewer.

     Please see the attached patch file 'Patch.txt' for the fix to the bug and a properly generated CSV file 'Fix.CSV'.

     Thanks go to Burlen for the great help with bug re-production.

     new revision: 1.2; previous revision: 1.1.
(0014420)
Alan Scott   
2008-12-22 20:40   
Tested local client. I believe that there are other issues with writing csv files, but I will write up another bug. Thus, I am going off of the attached files.