- Posts: 4
- Thank you received: 0
Expression Script/Manager - Problem with Umlauts
8 months 3 weeks ago - 8 months 3 weeks 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.
Attachments:
Last edit: 8 months 3 weeks ago by Aiophe.
Please Log in to join the conversation.
8 months 3 weeks ago - 8 months 3 weeks 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
Attachments:
Last edit: 8 months 3 weeks ago by Joffm.
Please Log in to join the conversation.
8 months 3 weeks 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.