Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Little bug in print.php with Character Encoding

I did show one of the news in printer-friendly format, check validation on validator.w3.org and this errors apears:

No Character Encoding Found!

No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.

What is missing in print.php script?
Nobody? Help me, please...
Try this, changes marked in bold.

echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>
<style type=\"text/css\">
body { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:14px; }
hr { height:1px;color:#ccc; }
.small { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:12px; }
.small2 { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:12px;color:#666; }

This defines the doc-type, and what carset to be used, and your page should validate.
Great, it works! The page is valid... Thank you very much... I have two troubles with Expanded Calendar... Do you use this infusion?
Nope :)
It´s a pity... This is great infusion with two little bugs with validation again...
Maybe do this the hard way then?

Use W3C validation page,
have them point out the errors,
view source code from your page,
then try to find those errors in your infusion source code,
correct it - and presto!

Might be a learningful experience, and the error might be easily corrected. ;)
I did it by this way, but I have no experience with the php coding... Can I describe this problem to you?
Thread Information
8 posts
2725 times
Last Post
Last updated on 13 years ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.