UTF8 issue?

UTF8 issue?

Hi,

I've got a bit of an annoying issue, where the accents in the page title, seem to be getting "corrupt". When you view them in console.log, the accents look fine. However, the $.post seems to break it:

where=http%3A%2F%2Fwww.chambres-d-hotes.org%2FRecherche%2F%3Fquery%3DEsp%25E9raza%2B%252811260%2529&title=Chambre+d'h%C3%B4te+Esp%C3%A9raza+(11260)&t=luna

The code (I've taken a chunk out, as its quite a complex function :))

  1.     $(document).on('click','.recommend-page', function(result) {
  2.         var link_id = $(this).attr('rel');
  3.        
  4.         console.log("FOO: " + $('title').text().replace("&","&"));
  5.         do_track("/cgi-bin/links/recommend_it.cgi");
  6.         $.post('/cgi-bin/links/recommend_it.cgi', {
  7.             ID: link_id,
  8.             where: window.location.href,
  9.             title:  $('title').text().replace("&","&"),
  10.             t: temp_set
  11.         } , function(result) {
  12.             bootbox.dialog(unescape(result), [{
  13.                 "label" : RECOMMEND_SEND_BTN,
  14.                 "class" : "btn-success recommend-form-btn",
  15.                 "callback": function() {
  16.                     // do other stuff here
  17.                     return false;
  18.                 }
  19.                 },{
  20.                     "label" : LANG_CANCEL,
  21.                     "class" : "btn-danger contact-btn-close"
  22.                 }]);       
  23.                
  24.         });
  25.         return false;
  26.     });

If you look at the attachment, you can see what I get in Firebug and the browser. The title in the browser shows the accent fine. The console.log shows it fine... yet the content loaded via AJAX has corrupt content.

Anyone got any ideas? Its driving me nuts!

TIA

Andy