View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04578Bug reportsImport/Exportpublic2010-09-08 17:27
Reporterrichdesign Assigned Toc_schmitz  
PrioritylowSeverityminor 
Status closedResolutionno change required 
Product Version1.90 
Summary04578: Label set CSV import can't handle accented characters
Description

When importing a label set from a CSV file, non-standard ASCII characters, such as accented characters in the label title truncate the string,
e.g. "Till jul och Ny Års partyn" only loads as "Till jul och Ny " stopping at the "Å" character.

Steps To Reproduce

Import this label set into v1.90 then check German and Swedish labels:

#

LABELSETS TABLE

#
"lid","label_name","languages"
"1","BugExample","en de-informal sv"

#

LABELS TABLE

#
"lid","code","title","sortorder","language"
"1","1","For a special event - wedding, work event, or other dress-up event","1","en"
"1","2","For Christmas and New Year parties and events","2","en"
"1","3","For the new season","3","en"
"1","4","To complement a new outfit or look","4","en"
"1","5","If I see something I like","5","en"
"1","6","Only if I really need something","6","en"
"1","1","Für eine besondere Veranstaltung – Hochzeit oder eine besondere Party.","1","de-informal"
"1","2","Für Weihnachten und Silvester ","2","de-informal"
"1","3","Für die neue Saison","3","de-informal"
"1","4","Für ein neues Outfit ","4","de-informal"
"1","5","Wenn ich etwas sehe die mir gefällt","5","de-informal"
"1","6","Nur wenn ich wirklich etwas brauche","6","de-informal"
"1","1","För ett särskilt tillfälle - bröllop, arbets event eller andra "dress-up"-tillfällen","1","sv"
"1","2","Till jul och Ny Års partyn ","2","sv"
"1","3","För den nya säsongen","3","sv"
"1","4","För att komplettera en ny outfit eller look","4","sv"
"1","5","Om jag ser något jag gillar","5","sv"
"1","6","Bara om jag verkligen behöver något","6","sv"

TagsNo tags attached.
Attached Files
example.csv (1,389 bytes)   
# LimeSurvey Label Set Dump
# DBVersion 112
# This is a dumped label set from the LimeSurvey Script
# http://www.limesurvey.org/
# Do not change this header!

#
# LABELSETS TABLE
#
"lid","label_name","languages"
"1","example","en de-informal sv"

#
# LABELS TABLE
#
"lid","code","title","sortorder","language"
"1","1","For a special event - wedding, work event, or other dress-up event","1","en"
"1","2","For Christmas and New Year parties and events","2","en"
"1","3","For the new season","3","en"
"1","4","To complement a new outfit or look","4","en"
"1","5","If I see something I like","5","en"
"1","6","Only if I really need something","6","en"
"1","1","F�r eine besondere Veranstaltung � Hochzeit oder eine besondere Party.","1","de-informal"
"1","2","F�r Weihnachten und Silvester ","2","de-informal"
"1","3","F�r die neue Saison","3","de-informal"
"1","4","F�r ein neues Outfit ","4","de-informal"
"1","5","Wenn ich etwas sehe die mir gef�llt","5","de-informal"
"1","6","Nur wenn ich wirklich etwas brauche","6","de-informal"
"1","1","F�r ett s�rskilt tillf�lle - br�llop, arbets event eller andra "dress-up"-tillf�llen","1","sv"
"1","2","Till jul och Ny �rs partyn ","2","sv"
"1","3","F�r den nya s�songen","3","sv"
"1","4","F�r att komplettera en ny outfit eller look","4","sv"
"1","5","Om jag ser n�got jag gillar","5","sv"
"1","6","Bara om jag verkligen beh�ver n�got","6","sv"
example.csv (1,389 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)999
I will donate to the project if issue is resolved
Browser
Database type & version999
Server OS (if known)999
Webserver software & version (if known)LimeService
PHP Version999

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2010-09-05 23:33

administrator   ~12755

Please attach the CSV file to this issue.

Thank you.

richdesign

richdesign

2010-09-06 09:45

reporter   ~12762

Sorry. CSV file uploaded, with header restored. Tested that it replicates the issue.

c_schmitz

c_schmitz

2010-09-06 10:06

administrator   ~12763

The problem is that your file is not correctly encoded in UTF-8 but some other charset (could not find out which one).
Just make sure the .csv file is saved in UFT-8 and it will work fine.

richdesign

richdesign

2010-09-06 12:06

reporter   ~12765

Thanks, and sorry for the false alarm. That isn't something I've come across before.
Thought it was an unlikely bug when there are so many European users.

c_schmitz

c_schmitz

2010-09-08 17:27

administrator   ~12784

Fix was released in 1.90+ version.

Issue History

Date Modified Username Field Change
2010-09-05 14:15 richdesign New Issue
2010-09-05 23:33 c_schmitz Note Added: 12755
2010-09-05 23:33 c_schmitz Assigned To => c_schmitz
2010-09-05 23:33 c_schmitz Status new => feedback
2010-09-06 09:44 richdesign File Added: example.csv
2010-09-06 09:45 richdesign Note Added: 12762
2010-09-06 09:45 richdesign Status feedback => assigned
2010-09-06 10:06 c_schmitz Note Added: 12763
2010-09-06 10:06 c_schmitz Status assigned => resolved
2010-09-06 10:06 c_schmitz Resolution open => no change required
2010-09-06 12:06 richdesign Note Added: 12765
2010-09-08 17:27 c_schmitz Note Added: 12784
2010-09-08 17:27 c_schmitz Status resolved => closed