0

I have a big problem with this ajax encoding.

I use a cyrillic file which I want to load() into a div, but everything I see is ����� (little squares).

I tried everything I found here and in Google, but nothing helped me. I tried to $.ajaxSetup(ContentType: ); my ajax calls, I tried to add a header() in my php files... NOTHING CHANGED.

Please help! I need an IE solution. Thanks in advance!

4
  • The php header() should take care of it. Can you post your code? Commented Mar 4, 2011 at 13:14
  • 1
    Have you tried to view the PHP-output directly,by calling the script in a browser? How does it look like? Commented Mar 4, 2011 at 13:14
  • @feeela: when I place header("Content-Type: text/html; charset=windows-1251"); in my php file and load it directly, everything seems to be ok. Commented Mar 4, 2011 at 13:31
  • @awm: Which code do you want to place, ajax call or the php file Commented Mar 4, 2011 at 13:31

1 Answer 1

1

FIXED! Everything works fine now, because I included some system files (e.g config.php, functions.php). I had this include problem with ajax before and I still got no the answer, but that's fine. Thank you, guys!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.