1

When I was fetching some data through API, I have some Danish strings which came encoded like below:

Encoded Original
Skæfte Skæfte
sølv sølv

Tried combinations of decodeURIComponent() and escape() but that doesn't help. Any ways to decode the string in native JS irrespective of the encoded language (Danish, in this case)?

1
  • Those are html-entities, you can use the example in that other question to decode it. Commented Dec 20, 2022 at 8:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.