Yesterday, I wrote about my troubles with UTF-8. A very similar problem I had today: the content I requested by Ajax had the wrong encoding. I found the solution relatively fast: I have to set the content type in my Ajax layout. Here is my modified Ajax layout:

<?php
header(’Content-type: text/html;charset=UTF-8′);
echo $content_for_layout;
?>