0

I am using React/Next.js and am fetching json data from an API. The response from fetching data says the charset is iso-8859-1. I am using utf-8 in my application.

When I try to display the fetched data in my react app some Chars (like € sign) aren't displayed. When I print it to console the € sign is displayed like this: \x80

Do I have to somehow convert the data I fetch from the API?

juliomalves
  • 21,997
  • 12
  • 75
  • 81
quikina
  • 95
  • 13

0 Answers0