View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
03929 | Bug reports | Other | public | 2009-11-30 07:48 | 2009-12-11 12:17 |
Reporter | pavel | Assigned To | mdekker | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.87RC2 | ||||
Fixed in Version | 1.87RC5 | ||||
Summary | 03929: Import data | ||||
Description | When I import data from survey and there are several variables from one question | ||||
Tags | No tags attached. | ||||
Attached Files | survey_79556_SPSS_data_file.dat (789 bytes)
'1',,'2','he',,,,,,,,,,,,,,,,,,,, '2','01-01-1980 00:00:00','1','he','3','3','3','3','1',,'2009-11-04','2','ttttt','3','3','2','2',,'1','hhhh','77','2','1','3' '3','01-01-1980 00:00:00','1','he','2','1','3','5',,'שדךלגכחדכחדגל','2001-10-12','2','אקספלורר 7','2','1','1',,'המון','2',,'8','3','1', '4','01-01-1980 00:00:00','1','he','3','1','1','1','1',,'2002-10-24','2','EXPLORER','2','1','1','3',,'2','CVMKJV/','5','2','1','3' '5','01-01-1980 00:00:00','2','he','1','3','4','4','4',,'2009-03-01','1',,'3','2','2','1',,'1',,'10','1','3','2' '6','01-01-1980 00:00:00','2','he','1','5','2','1','1',,'2009-11-11','1',,'2','1','1','3',,'2',,'1','1','3','2' '7','01-01-1980 00:00:00','2','he','3','4','2','2','1',,'2009-11-13','1',,'3','1','1','1',,'1',,'1','1','3','2' | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | |||||
I will donate to the project if issue is resolved | |||||
Browser | |||||
Database type & version | |||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | |||||
the same problem in the ranking items variables ( 3 right columns ) |
|
1) Which export type/format and options do you use for export? ==> Please add an export(ed) file for us too! |
|
I use excel, becouse other formats create gibberish in Hebrew |
|
Please see data_import1.bmp. |
|
1) What is SAS? Do you have a link? |
|
Sorry -)) |
|
Please see "SAS Data Set (Version 8 or 9)" in |
|
@ mdekker: as our expert in that topic what do you think about it? |
|
In SPSS export this should not be a problem as variable name validation is done and the name is constructed like proposed. Warnings are put in the code where conflicts are found and the name is adjusted. The basic rule is to choose your question codes and answer values wisely. If possible, please create an spss export and work from there. If this is not possible, a free alternative would be to use R export as it is basically the same. From there it might be possible to transfer the dataset to SAS, but I have no experience with that. The excel export used is indeed difficult to use, but I think for excel it is the only way to get meaningful headers as there is only a single dimension to each cell to store questioncode, question, answer while in spss a variable has a name and a label. The spss output I get form this survey seems ok to me: RENAME VARIABLE ( V5 = a1_aa1 ). |
|
mdekker, I creates questionnares in Hebrew. When I use SPSS import, all hebrew letters turn into gibberish. Only excel import saves the hebrew data. |
|
I don't have spss 16 at the moment, stuck with 15 that doesn't handle UTF. When I open the syntax with a text editor I see what looks like hebrew to me. Can you please tell me what version of SPSS you use? |
|
15 |
|
SPSS 15 is not capable of using unicode. Maybe someone with 16 or up can confirm wether the export is correct or not? To alter the excel export is not up to me I think, maybe ElMatador69 or CSchmitz can assign to the appropriate person? |
|
when I use SPSS 17 - the same problem |
|
Can you please attach the .sps syntax file for me together with the csv? Please note you can mark the topic as private to ensure your data is safe. |
|
sure |
|
I uploaded syntax+*.dat file |
|
As soon as I can get my hands on SPSS 17 I will have a look and see what I can do. Do you get any errors after running the syntax? Sometimes they are 'hidden' in the output so you have to browse the output. |
|
Just a quick thought... The first line reads: Could you delete the first chars so it reads: and then rerun the syntax? |
|
In versio 17 I don't see any error, but it runs only the first part of the code |
|
I uploaded the output |
|
I tried to run only SET UNICODE=ON - the same result |
|
I attached my output from spss15 and my sav file. Because it doesn't have unicode support i have an error for that line and i suppose the encoding is crap but i get the correct variable names. You should put set unicode first and then run the rest of the script (run the complete script including set unicode as the first line) |
|
Attached the sps file that should run ok (maybe you need to set the path to the dat file first) |
|
I tried your syntax - it runs until VARIABLE LABELS, as before |
|
Ok, I the data same to your ,but still instead of Hebrew I see other symbols |
|
got |
|
Sorry, I ran it again and now it's ok!!!! Thank you -) |
|
What did you changed in the syntax?Only fist row? |
|
I so I guess the first line was the one that gave the problems. I though I fixed it already but that doesn't seem the case. I will fix it in svn today. |
|
The only change was the first line. I just committed the fix to svn if you are familiar with that. If not, you can edit the \admin\export_data_spss.php to read: $headerComment = '*$Rev: 8020 $.' . "\n"; on line 34. |
|
Fixed in revision 8020, incorrect newline prevented the unicode line from running. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2009-11-30 07:48 | pavel | New Issue | |
2009-11-30 07:48 | pavel | Status | new => assigned |
2009-11-30 07:48 | pavel | Assigned To | => user372 |
2009-11-30 07:48 | pavel | File Added: data_import.bmp | |
2009-11-30 07:52 | pavel | Note Added: 10333 | |
2009-11-30 08:11 |
|
Note Added: 10334 | |
2009-11-30 08:12 |
|
Note Edited: 10334 | |
2009-11-30 08:12 |
|
Status | assigned => feedback |
2009-11-30 08:34 | pavel | File Added: results-survey79556(1).xls | |
2009-11-30 08:34 | pavel | Note Added: 10335 | |
2009-11-30 08:41 | pavel | File Added: limesurvey_survey_79556.csv | |
2009-11-30 08:41 | pavel | File Added: data_import1.bmp | |
2009-11-30 08:57 | pavel | Note Added: 10336 | |
2009-11-30 09:28 |
|
Note Added: 10337 | |
2009-11-30 09:42 | pavel | Note Added: 10338 | |
2009-11-30 10:25 | pavel | Note Added: 10339 | |
2009-11-30 10:31 |
|
Status | feedback => assigned |
2009-11-30 10:31 |
|
Assigned To | user372 => mdekker |
2009-11-30 10:31 |
|
Note Added: 10340 | |
2009-11-30 11:03 | mdekker | Note Added: 10341 | |
2009-11-30 12:12 | pavel | Note Added: 10343 | |
2009-11-30 12:12 | pavel | File Added: SPSS1.bmp | |
2009-11-30 12:15 | pavel | File Added: SPSS2.bmp | |
2009-11-30 12:21 | mdekker | Note Added: 10344 | |
2009-11-30 12:25 | pavel | Note Added: 10345 | |
2009-11-30 13:22 | mdekker | Note Added: 10349 | |
2009-11-30 13:43 | pavel | Note Added: 10350 | |
2009-11-30 13:56 | mdekker | Note Added: 10351 | |
2009-11-30 13:59 | pavel | Note Added: 10352 | |
2009-11-30 14:02 | pavel | File Added: survey_79556_SPSS_data_file.dat | |
2009-11-30 14:03 | pavel | Note Added: 10353 | |
2009-11-30 14:04 | pavel | File Added: survey_79556_SPSS_syntax_file.sps | |
2009-11-30 14:06 | mdekker | Note Added: 10354 | |
2009-11-30 14:15 | mdekker | Note Added: 10355 | |
2009-11-30 14:25 | pavel | File Added: output_spss.doc | |
2009-11-30 14:26 | pavel | Note Added: 10357 | |
2009-11-30 14:27 | pavel | Note Added: 10358 | |
2009-11-30 14:32 | mdekker | File Added: my_output_spss.rtf | |
2009-11-30 14:33 | mdekker | File Added: my_output.sav | |
2009-11-30 14:33 | pavel | Note Added: 10359 | |
2009-11-30 14:34 | mdekker | Note Added: 10361 | |
2009-11-30 14:34 | mdekker | Note Edited: 10361 | |
2009-11-30 14:35 | mdekker | Note Edited: 10361 | |
2009-11-30 14:37 | mdekker | File Added: my_survey_79556_SPSS_syntax_file.sps | |
2009-11-30 14:37 | mdekker | Note Added: 10362 | |
2009-11-30 14:45 | pavel | Note Added: 10364 | |
2009-11-30 14:50 | pavel | Note Added: 10365 | |
2009-11-30 14:51 | pavel | Note Added: 10366 | |
2009-11-30 14:54 | pavel | Note Added: 10368 | |
2009-11-30 14:56 | pavel | Note Added: 10369 | |
2009-11-30 14:57 | mdekker | Note Added: 10370 | |
2009-11-30 15:03 | mdekker | Note Added: 10371 | |
2009-11-30 15:04 | mdekker | Note Added: 10372 | |
2009-11-30 15:04 | mdekker | Status | assigned => resolved |
2009-11-30 15:04 | mdekker | Fixed in Version | => 1.87RC5 |
2009-11-30 15:04 | mdekker | Resolution | open => fixed |
2009-12-11 12:17 | c_schmitz | Status | resolved => closed |
2010-05-06 10:27 | c_schmitz | Category | Import / Export => (No Category) |