OSDN Git Service

Add HTTP header for telling its language charactor to the web browser if the configur...
authorsakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sat, 29 Jan 2011 05:08:01 +0000 (05:08 +0000)
committersakamocchi <sakamocchi@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Sat, 29 Jan 2011 05:08:01 +0000 (05:08 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@1121 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/config.php
utf8/config.php.sample

index 797ab2d..3799b9d 100755 (executable)
@@ -52,6 +52,7 @@ $DIR_LANG    = $DIR_NUCLEUS . 'language/';
 $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
 
 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
+       header('Content-type: text/html; charset=utf-8');
        echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
        exit;
 }
index ed3db89..8836139 100755 (executable)
@@ -52,6 +52,7 @@ $DIR_LANG    = $DIR_NUCLEUS . 'language/';
 $DIR_LIBS    = $DIR_NUCLEUS . 'libs/';
 
 if (!@file_exists($DIR_LIBS . 'globalfunctions.php')) {
+       header('Content-type: text/html; charset=utf-8');
        echo '設定がおかしいです。<a href="./install/index.php">インストール用スクリプト</a>を起動するか、config.phpの設定値を変更して下さい。';
        exit;
 }