Nucleus CMS日本語版SVNをgit-svnしたもの。リポジトリの変換作業用
Revisão | 2e853f9bc7a7623c1907e82779481b625bc1ffc3 (tree) |
---|---|
Hora | 2008-02-05 17:31:16 |
Autor | kimitake <kimitake@1ca2...> |
Commiter | kimitake |
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
@@ -15,8 +15,8 @@ | ||
15 | 15 | * |
16 | 16 | * @license http://nucleuscms.org/license.txt GNU General Public License |
17 | 17 | * @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 $ | |
20 | 20 | */ |
21 | 21 | class ITEM { |
22 | 22 |
@@ -356,6 +356,12 @@ class ITEM { | ||
356 | 356 | $i_body = postVar('body'); |
357 | 357 | $i_title = postVar('title'); |
358 | 358 | $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 | + } | |
359 | 365 | //$i_actiontype = postVar('actiontype'); |
360 | 366 | $i_closed = intPostVar('closed'); |
361 | 367 | //$i_hour = intPostVar('hour'); |