I have a text string that includes an escape sequence like \u00f1
. When I ingest in JS and try to append the string to a div, it's literally rendering \u00f1
rather than ñ
.
I've tried en/decodeURIComponent
and un/escape()
to no avail.
Any tricks on how to get the escape sequence rendering the correct UTF-8
character in JS?
P.S. The page is already encoded in UTF-8