We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi!
I need help. When I get information from a text file through createFileInput and cast file.data.toString (), the words in the array do not have special characters like ñ, or accents.
If I use the text () function by passing a string with special characters, it prints the word correctly inside the canvas.
In the html I have included the tag , so I do not know what may be going on.
Answers
Can you host your sketch in https://OpenProcessing.org/sketch/create
So we can run it and check what is going wrong as well? L-)
I´cant because i need dom elements like "createFileInput".
I've tried it but I'm not sure if it can be done :(
There are switches at the right panel which allows us to import pre-defined libraries like "p5.dom.js".
We can also upload files there as well.
Yes but when I insert a dom element it does not appear when running :((
Ok, I think I got it! :-j
I'm not sure how to share the project so you can see the code, but I think there you can see the problem.
https://codepen.io/carambandombolas/full/YrBObb
Now you just have to load a .txt file that contains words like "año" "piña" or "melocotón" (any with special characters)