• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

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


Commit MetaInfo

Revisãof7025cdc4292671b67c6f92aadcda1a3de73c84f (tree)
Hora2008-02-05 17:31:44
Autorkimitake <kimitake@1ca2...>
Commiterkimitake

Mensagem de Log

fixed a bug that auto draft saving uses wrong encording
http://japan.nucleuscms.org/bb/viewtopic.php?t=3209

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@367 1ca29b6e-896d-4ea0-84a5-967f57386b96

Mudança Sumário

Diff

--- a/utf8/nucleus/libs/ITEM.php
+++ b/utf8/nucleus/libs/ITEM.php
@@ -15,8 +15,8 @@
1515 *
1616 * @license http://nucleuscms.org/license.txt GNU General Public License
1717 * @copyright Copyright (C) 2002-2007 The Nucleus Group
18- * @version $Id: ITEM.php,v 1.7.2.1 2007-09-05 06:21:17 kimitake Exp $
19- * $NucleusJP: ITEM.php,v 1.7 2007/02/04 06:28:46 kimitake Exp $
18+ * @version $Id: ITEM.php,v 1.7.2.2 2008-02-05 08:31:44 kimitake Exp $
19+ * $NucleusJP: ITEM.php,v 1.7.2.1 2007/09/05 06:21:17 kimitake Exp $
2020 */
2121 class ITEM {
2222
@@ -356,6 +356,12 @@ class ITEM {
356356 $i_body = postVar('body');
357357 $i_title = postVar('title');
358358 $i_more = postVar('more');
359+
360+ if(_CHERSET != 'UTF-8'){
361+ $i_body = mb_convert_encoding($i_body, _CHARSET, "UTF-8");
362+ $i_title = mb_convert_encoding($i_title, _CHARSET, "UTF-8");
363+ $i_more = mb_convert_encoding($i_more, _CHARSET, "UTF-8");
364+ }
359365 //$i_actiontype = postVar('actiontype');
360366 $i_closed = intPostVar('closed');
361367 //$i_hour = intPostVar('hour');
Show on old repository browser