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?
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?