...

View Full Version : responseText encoding



KongFjong
12-15-2006, 08:18 AM
Hey;

I'm having trouble with making the responseText property output the right characters for me. I'm from Denmark, and thus want to display characters like , and properly, but when I try calling and php file in my Ajax look-a-like script, it doesn't work.

I've figured out, that the problem mos be the responseText properter since, the php file, when called directly, outputs the characters perfect, and I've set the right charset in the page in which the characters should be displayed.

I've read a few things on the problem, and even found a script in here, that is supposed to "replace any character outside of the first 126 ascii characters with a numbered entity."

It just doesn't work me, as it displays the numbered entitiy it self:)

So how do I fix this?

Do I really have to use responseXML instead, and create an XML-output in the php file or is there another solution?

KongFjong
12-15-2006, 09:00 AM
Figured it out my self woohooo...

Just put header("Content-type: text/xml; charset='iso-8859-9'"); in the top of my php file, and it worked, badda-bing:)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum