[xoops-cvslog 4353] CVS update: xoops2jp/html/modules/base/kernel

Back to archive index

Minahito minah****@users*****
2006年 8月 25日 (金) 19:15:09 JST


Index: xoops2jp/html/modules/base/kernel/Legacy_LanguageManager.class.php
diff -u xoops2jp/html/modules/base/kernel/Legacy_LanguageManager.class.php:1.1.2.9 xoops2jp/html/modules/base/kernel/Legacy_LanguageManager.class.php:1.1.2.10
--- xoops2jp/html/modules/base/kernel/Legacy_LanguageManager.class.php:1.1.2.9	Thu Aug 24 18:52:43 2006
+++ xoops2jp/html/modules/base/kernel/Legacy_LanguageManager.class.php	Fri Aug 25 19:15:09 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package legacy
- * @version $Id: Legacy_LanguageManager.class.php,v 1.1.2.9 2006/08/24 09:52:43 minahito Exp $
+ * @version $Id: Legacy_LanguageManager.class.php,v 1.1.2.10 2006/08/25 10:15:09 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -234,6 +234,28 @@
 	{
 		return "english";
 	}
+
+	function encodeUTF8($text)
+	{
+		if (XOOPS_USE_MULTIBYTES == 1) {
+			if (function_exists('mb_convert_encoding')) {
+				return mb_convert_encoding($text, 'UTF-8', _CHARSET);
+			}
+		}
+		
+		return utf8_encode($text);
+	}
+	
+	function decodeUTF8($text)
+	{
+		if (XOOPS_USE_MULTIBYTES == 1) {
+			if (function_exists('mb_convert_encoding')) {
+				return mb_convert_encoding($text, _CHARSET, 'UTF-8');
+			}
+		}
+		
+		return utf8_encode($text);
+	}
 }
 
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index