Support or better defaults for encoding of special characters (e.g., nordic letters "ÆØÅ") #261
Replies: 2 comments 3 replies
-
|
Good question, and I just posted an issue about this in #262 . I think we'll have to modify a few things to allow this to be avoided. In the meantime, if you provide a label and a value for each option, then the values will be stored in the data instead and then you could join back on the labels with special characters afterwards once you've collected your survey data. For example, if you added values like this: sd_question(
type = 'mc',
id = 'artist',
label = "Which artist do you prefer most from this list?",
option = c(
"Taylor Swift" = "taylor_swift",
"Lady Gaga" = "ladygaga",
"Ed Sheeran" = "ed_sheeran"
)
)Then you'd have things like |
Beta Was this translation helpful? Give feedback.
-
|
We have addressed this in our sd_question(
...
option = c("ÆØÅ", "Option 2")
)The options will have their original values stored in db. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hi! I am hoping my issue is one that is easily remedied – e.g., by defaulting to utf characters or changing an argument in the code that writes responses.
When the respondent selects something on a drop-down list (type 'select') with a special character like the Danish letter "Ø", the stored value removes the character if it comes first/last in the word and replaces it with "_" if it is placed in the middle. "Ærø" becomes "r", and "Allerød" becomes "aller_d".
This is a manageable bug, but somewhat unpredictable and easy to forget later.
Beta Was this translation helpful? Give feedback.
All reactions