If you request data through fetch, you can try to convert the data to arrayBuffer:
let result = [];
fetch('isoEncodedApi/data.json').then(response => {
response.arrayBuffer().then(arrayBuffer => {
const textDecoder = new TextDecoder('iso-8859-1');
const decodedResult = textDecoder.decode(arrayBuffer);
result = JSON.parse(decodedResult);
});
});
source
share