Description of the problem:
My instructions screens use a few special characters (e.g., pound sign, apostrophe, right arrow). These instructions display exactly as I hoped when I run my experiment locally, but when I upload and run via Pavlovia, they do not. Instead, they are accompanied by or replaced by other characters (such as ‘A’ with an accent over it).
Is there a way I can get these characters to display normally on Prolific? The only thing I have found in the forum is a question about allowing participants to enter special characters, but this does not seem to be the same issue as far as I can tell.
Just to clarify - do you mean ‘pavlovia’ rather than ‘prolific’? and this is an experiment created using jsPsych code rather than psychoJS/psychoPy is that correct?
Thanks! I think the issue has to do with encoding. I’ve got two workaround for you.
Change the text encoding of your index.html to UTF-8 via a text editor (if your favorite editor can’t do it, metapad can). Next, declare that it’s UTF-8 in the header (instructions).
For reference, I just needed to add the following text into my header…
[less than symbol]meta charset=“utf-8”/[greater than symbol]
Apparently, I didn’t need to change the text encoding in a text editor (though this may be becasue I use Visual Studio Code to do my coding, and VSC might do that automatically).
Aha, so approach number #1 in the options I listed earlier. Let me post this in a way that works on discourse (the trick is inserting preformated text)
Thanks Thomas - that is correct, except that you missed a / off the end (just before the >). I guess this indicates the end of the instruction, but I haven’t tried it without, so I’m not sure if this is an essential element of the code.