[xiph-commits] r14690 - branches/dir.xiph.org/inc/smarty-plugins

balbinus at svn.xiph.org balbinus at svn.xiph.org
Thu Apr 10 05:47:09 PDT 2008


Author: balbinus
Date: 2008-04-10 05:47:09 -0700 (Thu, 10 Apr 2008)
New Revision: 14690

Added:
   branches/dir.xiph.org/inc/smarty-plugins/modifier.force_utf8.php
Log:
Quickfixes ter.

Added: branches/dir.xiph.org/inc/smarty-plugins/modifier.force_utf8.php
===================================================================
--- branches/dir.xiph.org/inc/smarty-plugins/modifier.force_utf8.php	                        (rev 0)
+++ branches/dir.xiph.org/inc/smarty-plugins/modifier.force_utf8.php	2008-04-10 12:47:09 UTC (rev 14690)
@@ -0,0 +1,9 @@
+<?php
+
+include_once(dirname(__FILE__).'/../lib.utils.php');
+
+function smarty_modifier_force_utf8($str)
+{
+	return utils::is_utf8($str) ? $str : utf8_encode($str);
+}
+?>



More information about the commits mailing list