Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Expression Script/Manager - Problem with Umlauts

  • Aiophe
  • Aiophe's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months ago - 2 years 6 months 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
Last edit: 2 years 6 months ago by Aiophe.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 6 months ago - 2 years 6 months 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
Last edit: 2 years 6 months ago by Joffm.

Please Log in to join the conversation.

  • Aiophe
  • Aiophe's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 6 months 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.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose