• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用


Commit MetaInfo

Revisione1f29a6b74d8ce2abb8ff8dc092e103aaf874be8 (tree)
Zeit2008-12-16 10:12:56
Autorkmorimatsu <kmorimatsu@1ca2...>
Commiterkmorimatsu

Log Message

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

Ändern Zusammenfassung

Diff

--- a/euc/nucleus/libs/globalfunctions.php
+++ b/euc/nucleus/libs/globalfunctions.php
@@ -1542,6 +1542,12 @@ function encoding_check($val, $key, $encoding=false, $exclude=false) {
15421542 $search='/^([\x00-\x7F]+'.
15431543 '|[\xA1-\xF7][\xA1-\xFE])*/';
15441544 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;
15451551 default:
15461552 $search=false;
15471553 if (preg_match('/^iso\-8859\-[0-9]{1,2}$/',$encoding)) break;
--- a/utf8/nucleus/libs/globalfunctions.php
+++ b/utf8/nucleus/libs/globalfunctions.php
@@ -1542,6 +1542,12 @@ function encoding_check($val, $key, $encoding=false, $exclude=false) {
15421542 $search='/^([\x00-\x7F]+'.
15431543 '|[\xA1-\xF7][\xA1-\xFE])*/';
15441544 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;
15451551 default:
15461552 $search=false;
15471553 if (preg_match('/^iso\-8859\-[0-9]{1,2}$/',$encoding)) break;
Show on old repository browser