Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI Help needed

Unrecognized character \x90

         

andy18

7:09 pm on Jun 25, 2003 (gmt 0)

10+ Year Member



Hi,

We are using Windows 2000 with Perl 5.6 installed on the server.One of the user has uploaded his CGI compiled in C+.When the cgi file is executed on the server, it shows the below messages :

"Unrecognized character \x90 at C:\domains\domain.com\blah blah\sample.cgi line 1"

I have made a search around and found that it is because the cgi file is being run as Perl.

Appreciate your advices.Thanks

Andy

DrDoc

1:12 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm afraid the \x90 character is probably a control character. Thus, you need to track it down and remove it.

In a regular text editor it will most likely appear as a box , or just as regular space. At least you know where to look ;)

marcs

1:33 am on Jun 26, 2003 (gmt 0)

10+ Year Member



Since you know what character to look for, try a Hex editor.

Then simply use the search function in the editor to locate the offending character. That will tell you right were it is.

ShawnR

11:45 am on Jun 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The control character is meant to be there. It is not a perl script that you are trying to run, its a binary. (You say it is a compiled C (or C++? ) program). Don't try remove the control caracter and don't edit the binary that came out of the compiler! Instead get the server to run it, rather than pass it to perl. How to do that depends on what webserver you are using, and how it is configured, but as a starting point I'd try remove the ".cgi" suffix on the file, and just call up www.domain.com/blah blah/sample

If that doesn't work, I'd try call it sample.exe

If that doesn't work, post back with the details of your webserver and its configuration.

Shawn

DrDoc

10:33 pm on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Missed the part about compiled C code ;)

Yes, listen to Shawn. Remove the .cgi suffix...

andy18

10:48 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



Hi ShawnR,

Thanks!It works ....

Andy