- Posts: 4
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Expression Script/Manager - Problem with Umlauts
- Aiophe
- Topic Author
- Offline
- New Member
Less
More
1 year 11 months ago - 1 year 11 months ago #228043
by Aiophe
Expression Script/Manager - Problem with Umlauts was created by Aiophe
Your LimeSurvey version: 3.28.2
Own server or LimeSurvey hosting: own
Survey theme/template: vanilla
==================
I'm unsure whether this is a bug or actually my own fault, but I have the following problem:
My Participants have to match the Austrian states according to a map.
1. is Burgenland
2. is Niederösterreich
Afterwards, I want to assess their answers. So I check with ES/EM their input.
1. if( Q00_SQ001_BL.shown == "Burgenland", "true", "false") returns true when "Burgenland" is inputted
2. if( Q00_SQ002_BL.shown == "Niederösterreich", "true", "false") returns false when "Niederösterreich" is inputted
I'm a bit clueless as str_replace doesn't work (so that I can "escape" the umlaut) and is_string retruns true.
Is this a bug?
Attached, you'll find the .lsq of that question with a quick test.
Own server or LimeSurvey hosting: own
Survey theme/template: vanilla
==================
I'm unsure whether this is a bug or actually my own fault, but I have the following problem:
My Participants have to match the Austrian states according to a map.
1. is Burgenland
2. is Niederösterreich
Afterwards, I want to assess their answers. So I check with ES/EM their input.
1. if( Q00_SQ001_BL.shown == "Burgenland", "true", "false") returns true when "Burgenland" is inputted
2. if( Q00_SQ002_BL.shown == "Niederösterreich", "true", "false") returns false when "Niederösterreich" is inputted
I'm a bit clueless as str_replace doesn't work (so that I can "escape" the umlaut) and is_string retruns true.
Is this a bug?
Attached, you'll find the .lsq of that question with a quick test.
Last edit: 1 year 11 months ago by Aiophe.
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12905
- Thank you received: 3969
1 year 11 months ago - 1 year 11 months ago #228046
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Expression Script/Manager - Problem with Umlauts
Hi,
at first: Never send lsq nor lsg exports, only lss.
Reason:
1. lsq and lsg expostrs are language sensitive; you can't import such a question or a group into a survey with different base language
2. We volunteers have to create a survey - hopefully with the correct base language to be able to import your export.
Please, ease our life.
But you may enter this.
{if(Q00_SQ002_BL.shown=="Niederösterreich","true","false")}
The WYSIWYG-Editor will show after saving again "Niederösterreich", but it will work
Joffm
at first: Never send lsq nor lsg exports, only lss.
Reason:
1. lsq and lsg expostrs are language sensitive; you can't import such a question or a group into a survey with different base language
2. We volunteers have to create a survey - hopefully with the correct base language to be able to import your export.
Please, ease our life.
But you may enter this.
{if(Q00_SQ002_BL.shown=="Niederösterreich","true","false")}
The WYSIWYG-Editor will show after saving again "Niederösterreich", but it will work
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 1 year 11 months ago by Joffm.
Please Log in to join the conversation.
- Aiophe
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 0
1 year 11 months ago #228063
by Aiophe
Replied by Aiophe on topic Expression Script/Manager - Problem with Umlauts
Good Morning,
I see - sorry for the .lsq.
And thanks for the tip - I wasn't thinking about entering the escaped html.... Thank you!
I see - sorry for the .lsq.
And thanks for the tip - I wasn't thinking about entering the escaped html.... Thank you!
Please Log in to join the conversation.