I think I've heard that one before on several ajax discussions. The problem I think, is that if you request a .html page that doesn't contain a meta tag indicating the charset, you can get funky behavior like this, because the charset of the document you make the request from get's ignored and the default one is being used for the newly loaded piece of html.

If you are using php one quick fix is to sent a header like that:

header('Content-Type: text/html; charset=utf-8');


Other then that I'm not sure what solutions are out there.

Apart from this, jQuery is the best thing that ever happened to DOM
scripting!
I agree ; ).

Best Regards,
Felix Geisendörfer


John Resig schrieb:
Hmm... I'm not entirely sure why this might be happening. what happens
if you copy-and-paste the page that you're loading in, in to the page
that you're loading in to.

In other words, you have:

pageA.html
<script>
$("#foo").load("pageB.html");
</script>
<div id="foo"></div>

pageB.html:
æ, ø, å, Æ, Ø, Å etc

Now just copy the contents from  pageB.html into the div in pageA and
see if it renders correctly. If it doesn't - could you try and make a
test case for me, so that I can hunt it down? Thanks.

--John

  
When loading HTML with the load()-function in jQuery, Danish characters like
æ, ø, å, Æ, Ø, Å etc. shows up like question marks.

How and where should I configure the charset? When I open the site I want to
load directly in Firefox, nothing is wrong with the charset - only when
loading with jQuery.

Apart from this, jQuery is the best thing that ever happened to DOM
scripting!
    

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

  
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to