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.
Not a member yet? Click here to register.
Forgot Password?

Little bug in print.php with Character Encoding

Asked Modified Viewed 2,896 times
D
Drbo
D
Drbo 10
WinXP, Opera 12.14
  • Senior Member, joined since
  • Contributed 258 posts on the community forums.
  • Started 55 threads in the forums
  • Started this discussions
asked
Senior Member

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

1)
No Character Encoding Found!

2)
No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.

What is missing in print.php script?
0 replies

7 posts

D
Drbo
D
Drbo 10
WinXP, Opera 12.14
  • Senior Member, joined since
  • Contributed 258 posts on the community forums.
  • Started 55 threads in the forums
  • Started this discussions
answered
Senior Member

Nobody? Help me, please...
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Try this, changes marked in bold.

echo "[b]<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">[/b]
<html>
<head>
<title>".$settings['sitename']."</title>
[b]<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>[/b]
<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; }
</style>
</head>
<body>\n";


This defines the doc-type, and what carset to be used, and your page should validate.
0 replies
D
Drbo
D
Drbo 10
WinXP, Opera 12.14
  • Senior Member, joined since
  • Contributed 258 posts on the community forums.
  • Started 55 threads in the forums
  • Started this discussions
answered
Senior Member

Great, it works! The page is valid... Thank you very much... I have two troubles with Expanded Calendar... Do you use this infusion?
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

Nope :)
0 replies
D
Drbo
D
Drbo 10
WinXP, Opera 12.14
  • Senior Member, joined since
  • Contributed 258 posts on the community forums.
  • Started 55 threads in the forums
  • Started this discussions
answered
Senior Member

It´s a pity... This is great infusion with two little bugs with validation again...
0 replies
S
Sveinungs
S
  • Veteran Member, joined since
  • Contributed 935 posts on the community forums.
  • Started 3 threads in the forums
answered
Veteran Member

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. ;)
0 replies
D
Drbo
D
Drbo 10
WinXP, Opera 12.14
  • Senior Member, joined since
  • Contributed 258 posts on the community forums.
  • Started 55 threads in the forums
  • Started this discussions
answered
Senior Member

I did it by this way, but I have no experience with the php coding... Can I describe this problem to you?
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 2 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet