problem with ajax and utf-8?

problem with ajax and utf-8?

Hi,
 
After searching for a while I'm asking for help.
I have a little html file with the character ° in it, aka ° or °
If i just include the html file in the php script, it displays them allright but I would like to fetch that html file by an ajax call:
 
var txt = $.ajax({  url: 'web.html', datatype: 'html', async: false}).responseText; 
 
It displays square blocks instead (character 65533).
 
I do have <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" > in the html file.
 
How can I get my ° characters back?
 
Thanks!
    • Topic Participants

    • jjmc