Open aldichollow opened 6 years ago
Thanks for flagging this up! I'm not entirely sure, but I doubt EyeLink files allow for non-ascii characters. @smathot, you're the unicode expert, do you know this?
For now, I'd refrain from using non-ascii characters in your log file. Sorry!
Thanks for flagging this up! I'm not entirely sure, but I doubt EyeLink files allow for non-ascii characters. @smathot, you're the unicode expert, do you know this?
sendMessage()
accepts unicode. The problem here is that a byte string with non-ascii characters is provided, and pylink doesn't know how to decode it. So we should document the assumed encoding, and then when a byte string is passed use the assumed encoding to decode to unicode before passing it to sendMessage()
.
Hello, I am encountering an error in PyGaze on OpenSesame, when the trial has special character such as "ä,ö,ü,ß" and tries to log them as variables. The experiment crashes every first trial that includes german characters and I can imagine that it is related to the text-encoding error from eyelink.py, but wasn't able to fix it. As for a quick workaround, I just replaced those characters to normal alphabets, but I want to know how I can solve this.
Versions using: