Text Accent

edited December 2015 in p5.js

Hi, I'm developing a web with p5 which is awesome. A little question about Spanish accents. The web shows text boxes with text taken from json file, and it shows perfectly all accents in three different languages. But when I create the button for the menu like this one: buttonCat = createButton('català'); the accent in the web appears as [catalÃ]
How can I add all accents? Or what is the mistake? Thanks



  • edited December 2015 Answer ✓

    In order to assure accented letters show up correctly in a web page, we need to specify a <meta> tag w/ a charset attribute = utf8 or utf16 at the very beginning of its ".html" file:

    <meta charset=utf8>

Sign In or Register to comment.