http://www.perlmonks.org?node_id=561827


in reply to Porting DC-Dot to Windows

Try to leave only
print "Content-Type: text/html; charset=UTF-8\n\n";
before the actual output. The HTTP headers are sent by the webserver itself.

UPD:
If this does not help, try the following script:

print "Content-Type: text/plain; charset=UTF-8\n\n"; print "Hello, world!\n";
and describe what happens. Of course you may need to add a proper shebang line to the top of your script.


     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print