.htaccessに記述するPHPの設定

技術関係

|php|

表のページは Shift-JIS

内部のプログラムは UTF-8

もし、内部と出力が同一ならば 二つのコードを一致させればOK?

HTML の出力用文字コードを設定する

AddType “text/html; charset=Shift_JIS” html htm

文字列コードを修正する

php_value mbstring.detect_order auto
php_value mbstring.encoding_translation On
php_value mbstring.http_input SJIS
php_value mbstring.http_output SJIS
php_value mbstring.internal_encoding UTF-8
php_value mbstring.language Japanese
php_value mbstring.script_encoding auto
php_value mbstring.substitute_character none
php_value output_handler mb_output_handler

AddType application/x-httpd-php .php .html

||<

タイトルとURLをコピーしました