[PHP-users 2313] POST/GETデータ文字化け

Ryo Takahashi php-users@php.gr.jp
Thu, 27 Sep 2001 22:57:56 +0900


初めまして、高橋です。

現在、PHP4を使っているのですが、POST/GETデータ
が文字化けします。

環境は、
FreeBSD4.3-stable
apache+mod_ssl-1.3.20+2.8.4
mod_php4-4.0.6_4
ja-postgresql-7.1.3

すべて、portsよりインストールしました。

PHPスクリプトは、EUCで保存しています。
postgreSQLから取得したデータおよび、
スクリプトに書いてある文字に関しては文字化けは発生せず、
POST/GETデータのみが文字化けします。

設定等は以下の通りなのですが、他になにか確認するべき項目はあるでしょうか?

<Configure Command>(phpinfoより)

'./configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-system-regex' '--disable-debug' '--enable-track-vars'
'--without-gd' '--without-mysql' '--with-zlib' '--with-pgsql=/usr/local'
'--enable-mbstring' '--prefix=/usr/local' 'i386--freebsd4.3' 

php.iniでmbstringを以下のように設定しています。

output_buffering = On
output_handler = mb_output_handler

mbstring.detect_order = AUTO
mbstring.internal_encoding = EUC-JP
mbstring.http_input = AUTO
mbstring.http_output = SJIS
mbstring.substitute_character = none