Problems with charset in IE and Firefox

I have a problem with charset in IE and Firefox. In Chrome works well!!

In my database i use the latin1-general encoding, and in my page i use the charset=ISO-8859-1

I’m using this javascript code to animate and load my website!

$('.down-trigger').on('click', function () {
var toLoad = $(this).attr('href')+' #container';
     $('#container').attr('id','to-go');
     $('#wrapper').append('<div id="newcontainer"/>');
     $('#newcontainer').load(toLoad, function () {
       $('#newcontainer').append($('#container').children()).css({'position': 'absolute', 'top': '696px'});
       $('#to-go, #newcontainer').animate({top:'-=691'},600, function () {
         $('#to-go').remove();
         var lastchild = $('.page:last-child');
         var found = lastchild.find('div.slide');
         if (found.length == 0) { lastchild.remove(); }
         carousels();
       });
     $('#container').remove();
     $('#newcontainer').attr('id','container');
     searchform();
     triggers();
   });
   return false;
});

But in Firefox and IE i have encoding problems, some character are like “elabora��”

What i need to do?

Why not use utf-8 everywhere? I don’t understand why people use anything else, TBH, but there may be something I’m missing.

I tried change to utf-8, but does’t solve the problem.

READ CAREFULLY THIS MAY BE THE SOLUTION!!

I HAD A SIMILAR PROBLEM WITH AJAX AND I HAD TO PUT THE PHP FUNCTION header(); BEFORE ANY OUTPUT

FOR EXAMPLE:

header(‘Content-Type: text/html; charset=ISO-8859-1’);
ECHO “ANY TEXT”;

HOPE THAT HELPS!