I was experiencing the same problem, but the original poster's accepted answer didn't help. Doing one of the bellow actions solved it for me:
Changing the retrieved document's extension from ".html" to ".php".
Adding a .htaccess file to the main directory of the home page with the following content:
AddDefaultCharset UTF-8
A combination of the two above
More about this problem:
Examining response and request headers with Firebug, it was possible to see the server (Apache) was returning content encoded in charset ISO-8859-1. What I needed was UTF-8.
Although all files were encoded as UTF-8 without BOM and
header("Content-Type: text/html; charset=utf-8");
was being called on the main .php file, the dynamically included .html file had its elements filtered out because jQuery uses the browser's .innerHTML property to parse the retrieved document and insert it into the current document, as noted by Mike Haboustak. See jQuery's documentation for load for more details.
header()is PHP? What are you using to serve your pages. The code snippet you're trying to implement is suggesting that the server-side HTTP response to your client-sideload()needs to include a content-type header.<?php header ('Content-type: text/html; charset=utf-8'); ?>which gave me this errorWarning: Cannot modify header information - headers already sent by (output started at