Letters that cant be read

Hello,
I am running an experiment in which words appear on the screen randomly in a loop from an excel file.
Some of the words have the letters p̃ and m̃ but it cant be read by PsychoPy and when these words are picked, it makes the experiment crash.
What are my options?
Many thanks,
Noémie.

One easy fix that can be done, is to make your stimuli into an image file (make sure the colour surrounding the stimuli is the same as the background of the experiment) then have the excel file reference the path to the stimuli images, instead of the letters themselves.
There is a few other threads that have discussed using non-typical characters:
https://discourse.psychopy.org/t/text-responses-in-python-input-function-and-dialogue-boxes/12849/3
https://discourse.psychopy.org/t/using-different-languages/17598
Maybe one of these other threads may have some useful information?
Issac

Is there an error message?

The solution is normally to change font but normally the characters just aren’t displayed rather than causing a crash.

Yes there is an error message: “TypeError: ord() expected a character, but string of length 2 found”

Try using a different keyboard backend. Specifically not Pyglet.

1 Like

Thank you, I tried but still the same