Hello,
I've been creating a program using Ajax and PHP. The program is a javascript text-editor and it uses the ASCII characters & #255; & #254; (ÿ and þ) to break lines. The program relies on Ajax to fetch MySQL content using a PHP script. The script has been working OK. It's very odd, but I've ran into some problems and I can't seem to figure out what's going on. In my local environment the script is running OK; Windows with Apache 2.2.6 and PHP 5.2.5. On my remote server, it was running great up until a few hours ago; Debian with Apache 2.2.3 PHP 5.2.9.
I think that on my remote server, the PHP or Apache environment might be altering the way the Javascript is rendered.
For example, when I use alert("ÿ or þ") on my remote server, it comes up with one of those undefined/bad character sybmols. On my local server, the same alert shows the ASCII characters. The script it running from a php file (index.php), but the ASCII characters are only placed in a javascript file (js.js).
The program is running on my server at
http://davidshumway.info/sites/30510-journal/login.html .. The login is (admin/admin). Is there a content-type/character-set variable for Apache or PHP that might be different on my remote server?
Many thanks =)