Shouldn't accented characters be encoded?

Accented characters are used in the strings used in javascript code and passed to HTML to display: shouldn't they be encoded first?