• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-jp-ancient: Commit

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


Commit MetaInfo

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

Mensagem de Log

fixed a bug that auto draft saving uses wrong encording

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

Mudança Sumário

Diff

--- a/euc/nucleus/libs/ITEM.php
+++ b/euc/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.4.2.1 2008-01-29 07:05:06 kimitake Exp $
19- * $NucleusJP: ITEM.php,v 1.7.2.1 2007/09/05 06:21:17 kimitake Exp $
18+ * @version $Id: ITEM.php,v 1.4.2.2 2008-02-05 08:31:16 kimitake Exp $
19+ * $NucleusJP: ITEM.php,v 1.4.2.1 2008/01/29 07:05:06 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