in reply to cgi->vars() unexpected results

If you are running this on Redhat 8/9, you could be running into the infamous utf-8 LANG problem. If the $LANG environment variable has a .utf8 on the end, then Perl 5.8.0 treats any input as being UTF8 encoded, even if it isn't. If this is the case, include a new setting for LANG in the script that starts up apache eg if $LANG is en_US.utf8, then add LANG=en_US to the script.

Replies are listed 'Best First'.
Re: Re: cgi->vars() unexpected results
by Gerard (Pilgrim) on Apr 22, 2004 at 21:32 UTC
    Thanks, but I am running this on windows 2000 unfortunately.
    Cheers, Gerard