Expression Script/Manager - Problem with Umlauts

More
8 months 3 weeks ago - 8 months 3 weeks ago #228043 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.

 

File Attachment:

File Name: limesurvey...1766.lsq
File Size:8 KB
Attachments:
Last edit: 8 months 3 weeks ago by Aiophe.

Please Log in to join the conversation.

More
8 months 3 weeks ago - 8 months 3 weeks ago #228046 by Joffm
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


 


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.

More
8 months 3 weeks ago #228063 by Aiophe
Good Morning,
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.

Start now!

Just create your account and start using Limesurvey today.

Register now