View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
04288Bug reportsImport/Exportpublic2010-05-05 10:28
Reporteruser659Assigned Tomdekker  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87+ 
Target Version1.90bFixed in Version1.90b 
Summary04288: Quotes in SPSS export variable labels cause errors
Description

The SPSS export for and import into version 18 escapes quotes in the question text as \" in the variable lables. Eg.
VARIABLE LABELS V109 "I find it difficult to say \"no\" to my friends".

This produces an error:

Warning # 4461 in column 52. Text: no
An unknown variable name was specified on the VAR LABELS command. The name
and the label will be ignored.

Steps To Reproduce

Run attached syntax file with attached data file. From scratch put quotes in a survey question and export to SPSS >16.

Additional Information

I'm assuming consistent reproducability; don't know if SPSS Python plugins might have an effect.

Suggestion: It might work to replace the \ escape with a pretend line concatenation:
"I find it difficult to say "+'"no"'+" to my friends"

or equally

"I find it difficult to say "+
'"no"'+
" to my friends"

Might it be possible to use "+' and '+" to 'escape' double quotes and '+" and "+' to escape single quotes?

The SPSS Help advice is single or double quotes for enclosed double and single quotes respectively.

Forum message: http://www.limesurvey.org/en/support/forums/2-design-issues/41178-quotes-in-spss-export-variable-labels#41182

TagsNo tags attached.
Attached Files
SPSSquotestest.zip (2,915 bytes)
Bug heat2
Complete LimeSurvey version number (& build)8518
I will donate to the project if issue is resolved
BrowserN/A
Database type & versionMySQL server 4.1.12, client API 5.0.51a
Server OS (if known)Win2k3
Webserver software & version (if known)IIS 6
PHP Version5.2.6

Users monitoring this issue

There are no users monitoring this issue.

Activities

mdekker

mdekker

2010-04-23 14:02

reporter   ~11641

Fixed in 8623 (for 1.88) by using double quotes around the string, and replacing a double quote inside the string with 2 double quotes -->

VARIABLE LABELS V109 "I find it difficult to say \"no\" to my friends".

Now outputs:

VARIABLE LABELS V109 "I find it difficult to say ""no"" to my friends".

Which should be interpreted correct by SPSS

Issue History

Date Modified Username Field Change
2010-04-21 14:53 user659 New Issue
2010-04-21 14:53 user659 File Added: SPSSquotestest.zip
2010-04-21 19:21 user372 Status new => assigned
2010-04-21 19:21 user372 Assigned To => mdekker
2010-04-23 13:54 mdekker Fixed in Version => 1.90b
2010-04-23 13:54 mdekker Target Version => 1.90b
2010-04-23 14:02 mdekker Note Added: 11641
2010-04-23 14:02 mdekker Status assigned => resolved
2010-04-23 14:02 mdekker Resolution open => fixed
2010-05-05 10:28 c_schmitz Status resolved => closed