php.iniの設定(日本語編)

mb_stringの設定。

—————————————
output_handler = mb_output_handler
mbstring.language = Japanese
mbstring.internal_encoding = EUC-JP
mbstring.http_input = auto
mbstring.http_output = SJIS
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;
—————————————

mbはマルチバイトの略。
日本語は2バイト文字なのでここの設定が必要不可欠。
文字コード関連でいろいろ大変です。
日本語って難儀だぜ…

カテゴリー: livedoor時代, php   パーマリンク

コメントをどうぞ

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>