p5js text() and diacritics not showing up.

Hello I have a problem with the text() in p5js. I need it to show my diacritics characters: example:" ș ă ț â ..."; But instead I get a square I have added and tried others, WTF-8, UTF-16... but nothing works. My data it's in a JSON file and i'm using the preload function with "var data = loadJSON('data.json')" But even if I hardcode the text with a diacric character I have the same result. I can't find relevant information on the web, or something that just works.

Thank you

Answers

Sign In or Register to comment.