emilioayllon has asked for the wisdom of the Perl Monks concerning the following question:
I've written and tested a perl script encoded in ANSI charset and it seems to work well when I invoke the script from a web server, ie apache.
However, when I encode the script in utf8 the error log shows a "premature end of headers" error.
In my view this could be because linux may not understand the line #!/usr/bin/perl as it is encoded in utf8.
I use the pragma "use utf8"; after that line to indicate that the whole script was written in utf8.
Many thanks for your help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calling the interpreter from a utf8 script
by JamesNC (Chaplain) on Nov 18, 2003 at 23:10 UTC | |
by etcshadow (Priest) on Nov 19, 2003 at 06:07 UTC | |
|
Re: calling the interpreter from a utf8 script
by etcshadow (Priest) on Nov 18, 2003 at 23:49 UTC | |
|
Re: calling the interpreter from a utf8 script
by Anonymous Monk on Nov 19, 2003 at 09:03 UTC | |
|
Re: calling the interpreter from a utf8 script
by ysth (Canon) on Nov 18, 2003 at 23:23 UTC | |
by emilioayllon (Novice) on Nov 30, 2003 at 21:26 UTC |