+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 20 of 30
  1. #1
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139

    Question another question.. "No Character Encoding"

     
    Since I'm about to redo several of my websites, as well as my husbands (which I'm working on now) I thought I would try to go ahead and get the html validated.

    I fixed a few things on the index the validator didn't like, (like ampersand) and now the index is passing.. "tentatively"
    No Character Encoding Found! Falling back to UTF-8.

    I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.

    The document located at <http://www.communitygaming.org/epilogue/> was checked and found to be tentatively valid HTML 4.01 Transitional. This means that with the use of some fallback or override mechanism, we successfully performed a formal validation using an SGML or XML Parser. In other words, the document would validate as HTML 4.01 Transitional if you changed the markup to match the changes we have performed automatically, but it will not be valid until you make these changes.
    What do I need to do to make it complete validation, or is it worth doing further than it is at this point?

    Thanks, any help appreciated..

    PS.. the validator does have a faq on this.. but I looked at it, and wasn't sure what it was telling me to do, or how.
    I'm self taught.. that does make following terminology a bit more difficult... for instance when I call a php include a 'look-up' because that's how I think of it.. (it "looks up" the information.)
    Last edited by daedreem; February 2nd, 2006 at 04:44 PM. Reason: typ-oh!

  2. #2
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    Code:
    <?xml version="1.0" encoding = "UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    the doctype depends on what kinda code you're using... whether or not you're using font tags, frames etc.

    for more info go to w3c.org ...

    Hope that helps,

    Yotta
    Bluegrass ROCKS!!!

  3. #3
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    do you mean www.w3.org? where I already went?
    Thanks.

  4. #4
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    go here for a list of all doctypes (you need a correct doctype, depending on your code, for the document to validate properly)...

    i didn't read the ps in your last post... my bad...
    Bluegrass ROCKS!!!

  5. #5
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    Thanks..

    that looks more like what i was looking for.. I'll try it out.

  6. #6
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    ok. My head officially hurts now.

    my husbands site is faily basic.. has meta tags, tables, php includes, .. no font tags currently, but that may change...

    How do I tell which of these I'm supposed to use?

  7. #7
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    this should do it... unless your site uses frames....

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    if it uses frames.... then use the framest version of HTML 4.01...
    Bluegrass ROCKS!!!

  8. #8
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    Thanks for the answer...
    I already actually had that same thing in my file, just to test it..

    for some reason I'm still getting the 'no doctype' message.

    this is the url i'm testing. the simplest page in the site.
    http://www.communitygaming.org/epilogue/

  9. #9
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    i've tested the url you provided and it said... the page was tentatively valid... because the encoding was missing

    the 2 lines below should be the very first thing in your page... so you already have the doctype specified... you just need yo add the <?xml....?> line before that

    Code:
    <?xml version="1.0" encoding = "UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    Bluegrass ROCKS!!!

  10. #10
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    Thanks for the help!

    The validator is finally happy with me.


    ... now to do the rest.
    Last edited by daedreem; February 2nd, 2006 at 05:57 PM. Reason: additional

  11. #11
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    Oh! an additional question... My subsequent pages are php...
    Use the same on the top? or different?? I hope the same.

  12. #12
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    do you only use snippets of code throught the pages or do you use php entirely to generate all the content of the pages (using echo, print and such...) including such information as encoding type, and doctype?

    i don't know why i even asked that..... scratch what i asked.... it doesn't matter.... they same info should apply cause it only validates the resulting page after the script is processed....
    Bluegrass ROCKS!!!

  13. #13
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139

    php trouble

    well, i had to remove the top line you gave me entirely.. the page would not even show with it.

    The validator did not like the headers on the included html pages... should I remove the head and body tags and just have the information i want pulled into the document?

    ---
    My document by the way, since you wouldn't see the source correctly is basically:

    page . php
    (normal headers and such)
    (tables for formatting)
    ->include menu.html
    (finish the tables)
    (close the page)

  14. #14
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    also, the verifyer doesn't like things like the
    bordercolor tags on the table,
    or the
    background tag on the table..

    does that mean i have to choose either keep them, or verify not both?

    or do i need to use a different doctype?

  15. #15
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    the very top line should contain the encoding info the very next one should contain the doctype ...

    if your php script starts on the very top line (i.e. <?php ) than you need to to use echo of print to print those lines in the HTML document that's generated after the script is processed...

    so it should look something like this
    [CODE]<?php
    echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
    \"http://www.w3.org/TR/html4/loose.dtd\">"
    echo "<html>"
    .
    .
    .
    .
    .
    .
    .
    echo "</html>"
    ?>

    it all depends on where your php script starts... let me know how it goes...
    Bluegrass ROCKS!!!

  16. #16
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    Here's my page..
    it's mostly html with just a bit of php scripting in it.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
    
    <HTML>
    <HEAD>
    <TITLE>Epilogue!</TITLE>
    <META NAME="GENERATOR" CONTENT="MAX's HTML Beauty++ 2004">
    <META NAME="Author" CONTENT="Cheryl Taylor">
    <META NAME="Description" CONTENT="About Epilogue: An RPG developed by Robert Strawn and Revised by Robbie Taylor. The original was played by Texas A&amp;M University gamers during the 80's and the Revision has been played more recently at the Aggiecon Convention.">
    <META NAME="KeyWords" CONTENT="RPG,Role playing game,tabletop,epilogue,independent press,gaming,gamer,science fiction,game">
          <LINK REL="shortcut icon" HREF="favicon.ico" >
          <LINK REL="icon" HREF="animated_favicon1.gif" TYPE="image/gif" >
    </HEAD>
    <BODY>
    <BASEFONT FACE="Times New Roman" COLOR="#000000">
    <TABLE WIDTH="95%" HEIGHT="5%" ALIGN="center" SUMMARY="This table is only for data organization">
    <TR>
    <TD WIDTH="99%" HEIGHT="99%" ALIGN="center" VALIGN="middle">
    <H2>The Earth is gone;<BR>
    but her story continues…<BR>
    <A HREF='epilogue_main.php'><IMG SRC="images/epilogue.gif" WIDTH="550" HEIGHT="120" BORDER="0" ALT="O-Disk"></A></H2>
    </TD>
    </TR>
    </TABLE>
    
    <TABLE WIDTH="95%" HEIGHT="90%" ALIGN="center" SUMMARY="This table contains the Navigation menu, the main page contents, and a spacer.">
    <TR ALIGN="center" VALIGN="middle">
    	<TD WIDTH="20%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px inset; -moz-border-radius: 12px" TITLE="Menu" BACKGROUND="images/greystone.jpg">
    		<TABLE WIDTH="100%" HEIGHT="100%" ALIGN="center" SUMMARY="Menu" CELLPADDING="5">
              <TR ALIGN="center" VALIGN="middle">
                 <TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px outset; -moz-border-radius: 12px" TITLE="Menuouterborder">
    			<!-- Left Column Menu -->
     	            <? include 'e_menu.html'; ?>
    			 </TD>
              </TR>
           	</TABLE>
    	</TD>
    	<TD WIDTH="50%" HEIGHT="100%" ALIGN="center" VALIGN="top" TITLE="Contents">
    	<H2>Welcome to Epilogue.</H2>
    	<H4>Epilogue is a role-playing game of the far future, long after humanity's home solar system has replaced all its planets with a huge structure called an Alderson Disk in order to gain more room and squeeze every last ounce of energy from its sun. The civilization that built this structure collapsed eons ago, but remnants of it persist, because the Alderson Disk is large enough for anything. This quality, that the Disk can contain anything, is what we hope will make Epilogue come alive for you. While you can of course create your own races, encounters, items, and locations in other games, we actively encourage you to do so here.<BR>
    	<BR>
    	If you are new to role-playing games, we are happy to welcome you! For twenty-five years, Epilogue has been a first or second game for beginning role-players, and we love introducing people to the hobby, and giving them a fun hobby they can enjoy for the rest of their lives.<BR></H4>
    	<H3>Watch this page for new developments..<BR>
    	Meanwhile, enjoy the information and tools on this site!</H3>
    	</TD>
    	<TD WIDTH="20%" HEIGHT="100%" ALIGN="right" VALIGN="top" TITLE="Adverts">
    	<!-- Right Column Adverts -->
    				<DIV ALIGN="center">
    				<A HREF='epilogue_main.php'><IMG SRC="images/diskhome.gif" WIDTH="113" HEIGHT="118" BORDER="0" ALT="Epilogue Home"></A><BR>
    				</DIV>
    	            <? include 'e_rightmenu.html'; ?>
    </TR>
    </TABLE>
    
    <TABLE WIDTH="95%" HEIGHT="25%" ALIGN="center" SUMMARY="This table contains the No-Java Navigation menu">
    <TR ALIGN="center" VALIGN="middle">
    	<TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px inset; -moz-border-radius: 12px" TITLE="NoJavaMenu">
    		<TABLE WIDTH="100%" HEIGHT="100%" ALIGN="center" SUMMARY="Menu" CELLPADDING="5">
              <TR ALIGN="center" VALIGN="middle">
                 <TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px outset; -moz-border-radius: 12px" TITLE="NoJavaMenuouterborder">
    			<DIV ALIGN="center"><H3>Enjoy!</H3></DIV>
    			 </TD>
    		  </TR>
        	</TABLE>
    	</TD>
    </TR>
    </TABLE>
    
    </BODY>
    </HTML>

  17. #17
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    Quote Originally Posted by daedreem
    also, the verifyer doesn't like things like the
    bordercolor tags on the table,
    or the
    background tag on the table..

    does that mean i have to choose either keep them, or verify not both?

    or do i need to use a different doctype?
    i believe background was deprecated in HTML 4.01... and border color is a proprietary tag (i don't suggest using it...).... I suggest keeping the same doctype as it allows some flexibility in coding and using CSS to fix table borders, font colors, pretty much whatever you need...
    Bluegrass ROCKS!!!

  18. #18
    Member daedreem's Avatar
    Join Date
    Jan 2006
    Location
    Texas, Y'all.
    Posts
    139
    ok.. i took out the bordercolor tags, and theres no appreciable difference..
    but, what is the new coding if you want a background in a table?


    thanks for the help..
    stepping away from keyboard 10+ minutes.. daughter needs food and attention.

  19. #19
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    Quote Originally Posted by daedreem
    Here's my page..
    it's mostly html with just a bit of php scripting in it.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">
    
    <HTML>
    <HEAD>
    <TITLE>Epilogue!</TITLE>
    <META NAME="GENERATOR" CONTENT="MAX's HTML Beauty++ 2004">
    <META NAME="Author" CONTENT="Cheryl Taylor">
    <META NAME="Description" CONTENT="About Epilogue: An RPG developed by Robert Strawn and Revised by Robbie Taylor. The original was played by Texas A&amp;M University gamers during the 80's and the Revision has been played more recently at the Aggiecon Convention.">
    <META NAME="KeyWords" CONTENT="RPG,Role playing game,tabletop,epilogue,independent press,gaming,gamer,science fiction,game">
          <LINK REL="shortcut icon" HREF="favicon.ico" >
          <LINK REL="icon" HREF="animated_favicon1.gif" TYPE="image/gif" >
    </HEAD>
    <BODY>
    <BASEFONT FACE="Times New Roman" COLOR="#000000">
    <TABLE WIDTH="95%" HEIGHT="5%" ALIGN="center" SUMMARY="This table is only for data organization">
    <TR>
    <TD WIDTH="99%" HEIGHT="99%" ALIGN="center" VALIGN="middle">
    <H2>The Earth is gone;<BR>
    but her story continues…<BR>
    <A HREF='epilogue_main.php'><IMG SRC="images/epilogue.gif" WIDTH="550" HEIGHT="120" BORDER="0" ALT="O-Disk"></A></H2>
    </TD>
    </TR>
    </TABLE>
    
    <TABLE WIDTH="95%" HEIGHT="90%" ALIGN="center" SUMMARY="This table contains the Navigation menu, the main page contents, and a spacer.">
    <TR ALIGN="center" VALIGN="middle">
    	<TD WIDTH="20%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px inset; -moz-border-radius: 12px" TITLE="Menu" BACKGROUND="images/greystone.jpg">
    		<TABLE WIDTH="100%" HEIGHT="100%" ALIGN="center" SUMMARY="Menu" CELLPADDING="5">
              <TR ALIGN="center" VALIGN="middle">
                 <TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px outset; -moz-border-radius: 12px" TITLE="Menuouterborder">
    			<!-- Left Column Menu -->
     	            <? include 'e_menu.html'; ?>
    			 </TD>
              </TR>
           	</TABLE>
    	</TD>
    	<TD WIDTH="50%" HEIGHT="100%" ALIGN="center" VALIGN="top" TITLE="Contents">
    	<H2>Welcome to Epilogue.</H2>
    	<H4>Epilogue is a role-playing game of the far future, long after humanity's home solar system has replaced all its planets with a huge structure called an Alderson Disk in order to gain more room and squeeze every last ounce of energy from its sun. The civilization that built this structure collapsed eons ago, but remnants of it persist, because the Alderson Disk is large enough for anything. This quality, that the Disk can contain anything, is what we hope will make Epilogue come alive for you. While you can of course create your own races, encounters, items, and locations in other games, we actively encourage you to do so here.<BR>
    	<BR>
    	If you are new to role-playing games, we are happy to welcome you! For twenty-five years, Epilogue has been a first or second game for beginning role-players, and we love introducing people to the hobby, and giving them a fun hobby they can enjoy for the rest of their lives.<BR></H4>
    	<H3>Watch this page for new developments..<BR>
    	Meanwhile, enjoy the information and tools on this site!</H3>
    	</TD>
    	<TD WIDTH="20%" HEIGHT="100%" ALIGN="right" VALIGN="top" TITLE="Adverts">
    	<!-- Right Column Adverts -->
    				<DIV ALIGN="center">
    				<A HREF='epilogue_main.php'><IMG SRC="images/diskhome.gif" WIDTH="113" HEIGHT="118" BORDER="0" ALT="Epilogue Home"></A><BR>
    				</DIV>
    	            <? include 'e_rightmenu.html'; ?>
    </TR>
    </TABLE>
    
    <TABLE WIDTH="95%" HEIGHT="25%" ALIGN="center" SUMMARY="This table contains the No-Java Navigation menu">
    <TR ALIGN="center" VALIGN="middle">
    	<TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px inset; -moz-border-radius: 12px" TITLE="NoJavaMenu">
    		<TABLE WIDTH="100%" HEIGHT="100%" ALIGN="center" SUMMARY="Menu" CELLPADDING="5">
              <TR ALIGN="center" VALIGN="middle">
                 <TD WIDTH="100%" HEIGHT="100%" ALIGN="left" VALIGN="top" BORDERCOLOR="#A2A2A2" BORDERCOLORLIGHT="#C0C0C0" BORDERCOLORDARK="#969696" STYLE="border: 2px outset; -moz-border-radius: 12px" TITLE="NoJavaMenuouterborder">
    			<DIV ALIGN="center"><H3>Enjoy!</H3></DIV>
    			 </TD>
    		  </TR>
        	</TABLE>
    	</TD>
    </TR>
    </TABLE>
    
    </BODY>
    </HTML>

    Yeah... what you need to do is find another way to insert the external pages (menus) without using include ('cuz it was not designed to that... it does it just fine but your code after the script is processed will look very messy... -include returns everything in that file so, the unless you're extremelly carefull what you put in that file (no HTML tags, no body tags, no head tags, no doctype, no anything execept the very minimum you require to appear on the page)).
    I suggest just copying the content of the pages you want to apper to that page... it will make things a bit easier... but, if you want to you can also use includes but clear the files you're including of any extra tags... <html>, <body> <table> <head>
    no tags that are not allowed within the tag where the include statement resides...

    i tried to be as clear as i could... let me know how it goes...
    Bluegrass ROCKS!!!

  20. #20
    Ultimate Member YottaHertz's Avatar
    Join Date
    Nov 2005
    Location
    KY, US of A
    Posts
    1,181
    Quote Originally Posted by daedreem
    ok.. i took out the bordercolor tags, and theres no appreciable difference..
    but, what is the new coding if you want a background in a table?


    thanks for the help..
    stepping away from keyboard 10+ minutes.. daughter needs food and attention.
    in CSS and HTML

    Code:
    <style type="text/css">
    td.background {
    background-image: url(image.jpg);	/*image tiles - default behavior*/
    backgroud-repeat: no-repeat;         /*image does not tile*/	
    backgroud-repeat: repeat-x;       /*image tiles on the x coordinate*/	
    backgroud-repeat: repeat-y;       /*image tiles on the y coordinate*/
    
    /*choose the behavior you wish and remove the others
    also, specify the relative location of the image you wan to use as 
    background (i.e. if the image you want to use is located in a directory called img outside the directory where the page is saved the relative URL would be ../img/image.jpg)*/
    
    }
    
    </style>
    
    <!-- also when you want to apply this style (the background image) make sure to include the class attribute (class="background") in the opening tag of the structure where you want to use this -->
    hope it helps,

    Yotta
    Bluegrass ROCKS!!!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "Matrox Millenium P750 vs. ASUS a7m266" or "The AGP 3.0 question"
    By Texxel in forum Graphics Cards and Displays
    Replies: 3
    Last Post: June 1st, 2004, 07:58 PM
  2. How do I disable the "power", "sleep", and "wake" buttons.
    By ShawnD1 in forum General Tech Discussion
    Replies: 1
    Last Post: January 30th, 2004, 11:50 AM
  3. Character in book "#4" based on me!!!
    By sharder8 in forum IMO Community
    Replies: 6
    Last Post: July 12th, 2002, 02:43 PM
  4. Remember the "Worm", "Cave", or "Ribbon" games?
    By SickPup404 in forum IMO Community
    Replies: 11
    Last Post: July 10th, 2002, 07:02 PM
  5. Question re "Boxed" vs "OEM"
    By jmichna in forum Processors, Memory, and Overclocking
    Replies: 7
    Last Post: May 31st, 2002, 02:51 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews