Jump to content

ASCII characters in Javascript/PHP page, on local server vs. remote


fallguy

Recommended Posts

 

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 create 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 and PHP 5.2.9.

 

I think that on my remote server, the PHP or Apache environment might be altering the rendering of my ASCII characters... All of the ASCII characters are embedded only within Javascript.

 

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 =) =)

 

PS. The PHP info outputs for my local and remote servers are here:

 

http://davidshumway.info/phpinfo().htm

http://davidshumway.info/phpinfo()local.htm

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.