Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用
リビジョン | e1f29a6b74d8ce2abb8ff8dc092e103aaf874be8 (tree) |
---|---|
日時 | 2008-12-16 10:12:56 |
作者 | kmorimatsu <kmorimatsu@1ca2...> |
コミッター | kmorimatsu |
Shift_JIS support for mobile phone.
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/tags/release-3-31-sp3@728 1ca29b6e-896d-4ea0-84a5-967f57386b96
@@ -1542,6 +1542,12 @@ function encoding_check($val, $key, $encoding=false, $exclude=false) { | ||
1542 | 1542 | $search='/^([\x00-\x7F]+'. |
1543 | 1543 | '|[\xA1-\xF7][\xA1-\xFE])*/'; |
1544 | 1544 | break; |
1545 | + case 'shift_jis': | |
1546 | + // Note that shift_jis is only supported for output. | |
1547 | + // Using shift_jis in DB is prohibited. | |
1548 | + $search='/^([\x00-\x7F\xA1-\xDF]+'. | |
1549 | + '|[\x81-\x9F\xE0-\xFC][\x40-\xFC])*/'; | |
1550 | + break; | |
1545 | 1551 | default: |
1546 | 1552 | $search=false; |
1547 | 1553 | if (preg_match('/^iso\-8859\-[0-9]{1,2}$/',$encoding)) break; |
@@ -1542,6 +1542,12 @@ function encoding_check($val, $key, $encoding=false, $exclude=false) { | ||
1542 | 1542 | $search='/^([\x00-\x7F]+'. |
1543 | 1543 | '|[\xA1-\xF7][\xA1-\xFE])*/'; |
1544 | 1544 | break; |
1545 | + case 'shift_jis': | |
1546 | + // Note that shift_jis is only supported for output. | |
1547 | + // Using shift_jis in DB is prohibited. | |
1548 | + $search='/^([\x00-\x7F\xA1-\xDF]+'. | |
1549 | + '|[\x81-\x9F\xE0-\xFC][\x40-\xFC])*/'; | |
1550 | + break; | |
1545 | 1551 | default: |
1546 | 1552 | $search=false; |
1547 | 1553 | if (preg_match('/^iso\-8859\-[0-9]{1,2}$/',$encoding)) break; |