banalmente ... codice della request e esempio di response?
no perchè magari le entità non c'entrano niente, dato che sono testo e testo rimangono ... 
codice:
<?php
header('Content-Type: text/html; charset=utf-8');
if(isset($_GET['entity']))
exit(htmlentities(utf8_encode('àèìòù ... ipsilon'), ENT_QUOTES, 'UTF-8'));
exit(
'<script type="text/javascript">
onload = function(){
var xhr = new XMLHttpRequest;
document.body.innerHTML = "loading content ...
";
xhr.open("get", "'.$_SERVER['PHP_SELF'].'?entity", false);
xhr.send(null);
document.body.innerHTML += xhr.responseText.concat("<hr />", "Loaded: ", xhr.responseText.replace(/&/g, "&amp;"));
};
</script>'
);
?>