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)?

node_modules
  • 4,790
  • 6
  • 21
  • 37
Surya
  • 971
  • 2
  • 17
  • 30
  • Those are html-entities, you can use the example in that other question to decode it. – Esko Dec 20 '22 at 08:38

0 Answers0