Richard wrote: > Hello > > I wrote a script that creates dynamic html. I validated the resulting html > code with W3C and it couldn't validate it because it didn't detect the > character encoding. I added the meta information to the header with > the -meta argument: > > $q->start_html( -dtd => '-//W3C//DTD HTML 4.01 Transitional//EN', > -title=>'Test', > -meta=>{http_equiv=>'content-type', > content=>'text/html; > charset=ISO-8859-1'} > > ), > > The resulting html code looks like this: > <snip />
See about upgrading CGI.pm. My start_html() outputs a XHTML transitional dtd and a XML processing instruction that has the document encoding. My docs validate fine. If its not your server, put CGI.pm in one of your directories, and say: use lib qw(/place/where/i/put/); #path to CGI.pm BEFORE you say: use CGI.pm; This will load the newer version because the above path will be looked in for modules before any others in @INC are. Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]