Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    responseText encoding

    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?

  • #2
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •