I have encountered a situation where a guy helps me decode a string to make it readable.
decodeURIComponent("Invalid Ticker Name \u0027t\u0027 at line: 3")
"Invalid Ticker Name 't' at line: 3"
Upon further inspection, it appears that the source of this string (array item) is indeed a string.
typeof decodeURIComponent(errorsArr[i])
"string"
Despite this revelation, attempting to decode the array item proves unsuccessful.
decodeURIComponent(errorsArr[i])
"Invalid Ticker Name \u0027t\u0027 at line: 3"
What steps should be taken in this scenario?