I'm dynamically adding value of an input tag. The values are returned from the server, and at some cases they are UTF8 encoded. Long story, short, the value of input tags still keeps the encoded characters, rendering e.g. Sábado
to the user.
In my span tags, the value is rendered as desired, meaning that 'Sábado' is outputted. I do use
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
How can I fix this?
thanks.
Those strings are not "UTF8 encoded", those are HTML entities.
Don't HTML escape the values. Possibly you're double-escaping them somewhere.
Hard to give more concrete advise without details about your code.