print "Content-type: text/plain\n\n";

print "Content-type: text/plain; charset=EUC_JP\n\n";
にかえてみよう。
#jisならISO-2022-JP, シフトJISならSHIFT_JIS