General discussion


website garbage in linux web browser

By longennamer ·
I am looking at our website using a linux text browser, but the website shows
as garbage. I look at other websites and they are fine. I am concerned
because some search bots see websites as text browsers do. How do I fix?

let me clarify what "garbage" is.

I can design a webpage with just the html tags head tags body tags and the
word test, and it is still garbage in the text browser. Thus, I think it
must have something to do with IIS settings.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by Jaqui In reply to website garbage in linux ...

text mode browsers can only work with content type of text/html or text/plain

if iis is sending it as any other content ype that would cause this type of problem.

the other thing that could affect this is the character set.
linux doesn't have the windows characterset by default, so your iis would need to use the iso charachter set that is correct for the language of the page.
iso8895-1 is the most commonly used character set.

below is the full header I se in my own pages, with the spcific page data left blank.
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="" lang="en">
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
<meta name="Author" content=""/>
<meta name="description" content="" />
<meta name="" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" media="all" type="text/css" href=""/>

the very first line of the header is to make IE render css and xhtml right
this header displays the page correctly on every browser I have checked with, including text mode only browsers.

text only browsers do not actually render css and xml divs correctly, that data is never actually pulled from the server, they just display the content according to the markup tags in the document.

Collapse -

by Jaqui In reply to

since the header didn't actually display 100% correctly, some lines are to long.

to actually get it, if you want to test it on your page,

and yup, it is text mode browser compatable site. :)

Collapse -

by longennamer In reply to

I've stripped all code down to this test page, and even this doesn't work. Could it have anything to do with Windows 2003 or IIS 6?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="description" content="">
<meta name="keywords" content="keywords">
Test document

Collapse -


by Jaqui In reply to

it could be settings in either product.

I always use linux and apache for webserver stuff, and never get any issues with binary formats being used for text format files.

that is what the garbage looks like, a binary file being opened in a text editor.

your test file should display perfectly in any browser, even the antiquated cli / text only browsers that don't work 100% with xml/xhtml and css.

Related Discussions

Related Forums