in reply to CGI.pm: "Malformed UTF-8 character" in apache's error.log
You will have to switch STDIN to binary before reading the binary upload data. If everything in CGI.pm works as I expect, you can probably do a binmode STDIN and possibly binmode $file right before reading from $file.
By the way, I've always distrusted the use of the param() as both providing the file name and the handle. If that doesn't work, you may want to use $cgi->upload('file') to get the file handle.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.pm: "Malformed UTF-8 character" in apache's error.log
by isync (Hermit) on Feb 26, 2008 at 18:54 UTC | |
by ikegami (Patriarch) on Feb 26, 2008 at 19:17 UTC |