Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一部のシステムでは UTF-8 であり、他のシステムでは latin-1 です。これをどのように設定しますか?それはphp.iniの何かですか?
(HTTPヘッダーを設定することで、特定のページのエンコーディング/文字セットを設定できることは知っていますが、これは私が探しているものではありません。)
アレックス
php.ini に default_charset 設定があります
PHP 以外のファイルの文字セットを変更する必要がある場合は、Apache に何を使用するかを指示できます。AddDefaultCharset utf-8