LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-16-2010, 05:13 PM   #1
forward
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Rep: Reputation: 0
ASCII characters in Javascript/PHP page, on local server vs. remote


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

Last edited by forward; 03-16-2010 at 05:22 PM.
 
Old 03-16-2010, 05:47 PM   #2
forward
LQ Newbie
 
Registered: Jun 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The PHP info outputs for my local and remote servers are here:
http://davidshumway.info/phpinfo().htm
http://davidshumway.info/phpinfo()local.htm

=D

Last edited by forward; 03-16-2010 at 05:57 PM. Reason: Grammar
 
  


Reply

Tags
ascii, javascript


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filter ASCII characters PHP action_owl Programming 8 04-04-2010 11:58 AM
HTML/Javascript - Can I access a user's local SQL server (with their permission) fcdev Programming 5 09-07-2009 03:08 AM
javascript: retrieve cookie of parent page from child page nocturna_gr Programming 4 01-08-2007 05:36 AM
[javascript] confirm button on php page Erhnam Programming 1 02-24-2005 01:05 PM
Executing Javascript within a PHP page Linh Programming 3 09-26-2003 05:08 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration