I am trying to read/get data from URL of text file as below. It gives proper data when txt file encoding is UTF-8 but when encoding type is ANSI, it is showing � for ” curly quotes.
let url='www.test.com/test.txt';
return this.http.get(url, { responseType: 'text' });
Can anyone please let me know how I can get data from URL of text file with encoding type ANSI?