Script Error

楠原さん (2011-01-04 02:42:05) www.sunash.jp/example.html

フォーム入力し送信ボタンを押すと以下のエラーになります。
-----------------------------------------------------------------------------
Script Error

The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.
-----------------------------------------------------------------------------
次に.htaccessに「AddHandler cgi-script-debug .cgi」を追加して見たところ、次の内容が表示されました。

(中略)
argv[0] = ’cgiwrapd’
Executing ’/virtual/(中略)/mailform/send.cgi’
Output of script follows:
=====================================================
Unrecognized character \xC2 at /virtual/(中略)/mailform/send.cgi line 213, <DATA> line 855.
-----------------------------------------------------------------------------

詳しくはわからないのですが、send.cgiのライン213行目が引っかかっている事なのでしょうか?

(send.cgiの213行目付近)
210行目  }
211行目  Jcode::convert(¥$str,’jis’);
212行目 $str = &charhotfix_unescape_jis($str);
213行目 return $str;
214行目 }

となっているのですが、どこが悪いかわかりません。

ご教授の程、よろしくお願い致します。

Re:Script Error

和田 (2011-01-06 17:32:43) www.synck.com

Jcodeがインストールされていないのではないかなと。
cgi.synck.com/Jcode.zip
をダウンロード後、回答したJcode.pmとJcodeフォルダをsend.cgiと同じ階層にアップしてみてください。