So then we come to why the issue shows up? "Ive debugged and can see the data from the database is being shown correctly but when i export it to the response, the special characters come back as gobbledygook, even the pound symbol is coming back as '£'"
what do you do?
- Check the data in the database is stored correctly and it is getting to the response without being corrupted
- Check you are setting the ContentEncoding correctly, what do you need to use? UTF8 is always a good one to use if you are unsure
- Make sure you are using the right BOM (Byte Order Mark)! (this is nearly always the issue with unexplained chars with the correct encoding, see below