Displaying a single word with German umlaut
Hi, this is continuing a thread with a different topic https://forum.cogsci.nl/discussion/6247/browser-issue-with-randomized-blocks-run-if-statements#latest but since it's a separate issue I am creating a new thread.
I have the word ÄRGER on a sketchpad. This displays correctly in OpenSesame, but "undefined" is displayed in OSweb.
I thought that perhaps German umlaut characters were not recognised, but I then heard from others that they were working ok.
So I tried to test a few things out. It turns out, it is only a problem when there is only a single word. If it is part of a sentence, or even if I only add a space or press return, the problem goes away.
An old colleague just took a look and said the draw_textline function takes the input from the gui format as text = ÄRGER, but when it is part of sentence, it is defined as a string (even with only space after the word: text = "ÄRGER ").
Just adding quotation marks in the script (text = "ÄRGER") doesn't work as they're automatically taken out again.
Defining the text as a variable does however work. (As one probably would if there was a list of words where one was selected to be displayed each trial, so in sketchpad, e.g.: [emotion]. I suppose this is the most common way single words are presented.)
I think that's what happening here?