Source file has:
header('Content-type: text/html; charset=iso8859-1');
Source ajax (jQuery) script is:
$(document).ready(function() {
$.ajaxSetup({
cache: false
});
$("#searchfield").keyup(function(){
$("#insert_search")
.load('ajax/searchobjects.php', {search_word: $("#searchfield").val()}, function(){
});
});
});
Destination file:
header('Content-type: text/html; charset=iso8859-1');
echo $_POST['search_word'];
Data sent:
é
Result is:
é
All files:
Western (ISO Latin 1) (using TextWrangler)
Funny thing: I can insert records into MySQL just fine with accents.