I have an array that is called results, it is holding data that is coming from a csv file and it looks like the following:
[
{
Regions: '',
'Registration Link': '',
'Related Event': '',
Sponsor: '',
'Sponsor Name': '',
'Sponsor website': '',
'sponsored by:': '',
Summary: '',
'Webinar Video Link': '',
},
{
Regions: '',
'Registration Link': '',
'Related Event': '',
Sponsor: '',
'Sponsor Name': '',
'Sponsor website': '',
'sponsored by:': '',
Summary: '',
'Webinar Video Link': '',
}...
}
I would like to save this file after updating the text inside the array with ANSI encoding. The current format is utf8, and it is showing me a lot of weird symbols. I am hoping someone can provide me with a function that will fix the problem for me.
function updateEncoding(results){
return results;
}