From 5b4582def7b871d9ea70e9dae2ecd184139a7619 Mon Sep 17 00:00:00 2001 From: mumumu-org Date: Mon, 12 May 2008 13:01:01 +0000 Subject: [PATCH] - changed default language setting, array(LANG_JA, 'UTF-8', 'UTF-8'); --- class/Ethna_Controller.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/class/Ethna_Controller.php b/class/Ethna_Controller.php index 5693a3f..aec809a 100644 --- a/class/Ethna_Controller.php +++ b/class/Ethna_Controller.php @@ -107,6 +107,7 @@ class Ethna_Controller var $system_encoding; /** @var string クライアント側エンコーディング */ + /** ブラウザからのエンコーディングを指す */ var $client_encoding; /** @var string 現在実行中のアクション名 */ @@ -1763,13 +1764,15 @@ class Ethna_Controller /** * デフォルト状態での使用言語を取得する + * 外部に出力されるメッセージのエンコーディングを切り替えたい場合は、 + * このメソッドをオーバーライドする。 * * @access protected * @return array 使用言語,システムエンコーディング名,クライアントエンコーディング名 */ function _getDefaultLanguage() { - return array(LANG_JA, null, null); + return array(LANG_JA, 'UTF-8', 'UTF-8'); } /** -- 2.11.0