>>410
print "Content-type:text/html ; charset=Shift-JIS\n\n";
print "<html>\n";
print "<head>\n";
print "<META HTTP-EQUIV=\"Content-type\" CONTENT=\"text/html ; charset=Shift_JIS\">\n";

こんな感じ。