Solved

Extra ASCII character printed at the end of HTML page

Posted on 1998-12-30
3
161 Views
Last Modified: 2013-12-25
I used a cgi to generated a HTML page. It works fine normally. But sometimes under IE 4.01, I saw an extra ASCII character got printed on the screen at the end of the page. However, when I view the source, there is nothing there.  I even used a Protocol Analyzer to see the actual packet. But there is nothing after the </HTML> tag. It nerver happens to Netscape. Is this a IE bug? If it is, what's causing it?

Thanks.
0
Comment
Question by:samantha
3 Comments
 
LVL 7

Expert Comment

by:faster
Comment Utility
I also observed the same thing.  I thought it is an IE bug.
0
 
LVL 11

Accepted Solution

by:
mouatts earned 100 total points
Comment Utility
Without seeing the code (and possibly the extra character) I would suggest that your CGI is outputing something that it shouldn't and whatever it is is invalid.

The reason that you are seeing it in IE and not Netscape is down to the way that each browser renders invalid returns rather than an actual bug in the browser.

For example Netscape V3 handled invalid characters in URLS (eg a colon) by passing them on as though they were any other valid character. IE3 on the otherhand would chop the URL off at the point that the invalid character occurred. Neither is either right or wrong (the CGI or HTML in such a case is at fault).

There are other differences of a similar vain in version 4 browsers. If you would care post the code and identify where the bad output occurs in relation to the HTML output we may be able to pinpoint the exact problem.

Hope this helps
Steve
0
 

Author Comment

by:samantha
Comment Utility
Thanks, Mouatts. The code is quite big(more than 1500 lines) so I can't post it here.  The extra character is only printed sometimes, and its value changes. I am sure it always gets printed after the tag </html>.(I output a word after </html> tag, the character still apears after that word)  But, as I said, I used a protocl analizer to examine the actual TCP/IP packet, nothing is there after the </html> tag.  Any idea?    
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now