Dear psychopy experts,
I have a puzzling problem with psychopy TextStim which ONLY occurs on Windows 10.
Here it is: I cannot get the line breaks in textstim displayed. Instead I get a box, and all on one line.
The line for utf-8 coding is included in the script, and the text is likewise coded as u’text \n\text’
On windows 7 and the identical Psychopy version (v1.83.01) the code runs without a problem. However, I need to show it to participants on the Windows 10 touchscreen machine.
I have tried the following solutions, none of which worked:
- changed windows system language and input language
- changed font
- changed newline preferences to dos and replaced \n with \r\n (returns two little boxes instead of one)
- loaded the text into a string variable and encoded (.encode(‘UTF-8’)) and then called the variable in textstim
- regenerated the code from builder
Any solution suggestions would be most appreciated!
Best,
Bettina