How to display characters correctly in an ajax loaded page...
So i tried looking for the answer on the internet, and found a lot of stuff, most of which i didnt understand. I have multiple tabs, and nested tabs and even tabs, nested within nested tabs, which content using ajax. the problem is some of the pages when they're loaded rather than showing a ' or a " they just show question marks. I was able to solve the problem on a few of the pages by adding
- $.ajax({
- contentType: "application/x-www-form-urlencoded;charset=ANSI"
- });
But there are still many pages (I'd say 5-10) that still have the question marks. A lot of what i read on the internet mentioned using PHP to add headers and what not to the pages to get them to work, but the server I am currently using does have support for PHP. AFAIK all the pages are encoded in ANSI. When they are loaded with AJAX the question marks appear, when they are loaded normally (Non-ajax) the question marks don't appear.
Any other ideas?