ºá¤Èȳ++ÆóΧÇØÈ¿

<html>
<head>
<title>{$title}</title>
</head>
<body>
ËÜʸ¡§{$honbun} 
</body>
</html>
require 'Smarty.class.php';
$tpl = new Smarty;

$title = "¤Æ¤¹¤È";
$tpl->assign("title",$title);
$tpl->display("test.tpl");
  • function filter_pre($buff, &$tpl){
    	return mb_convert_encoding($buff,"EUC-JP","SJIS");
    }
    function filter_post($buff, &$tpl){
    	return mb_convert_encoding($buff,"SJIS","EUC-JP");
    }
    
    require 'Smarty.class.php';
    $tpl = new Smarty;
    
    $tpl->register_prefilter('filter_pre');
    $tpl->register_postfilter('filter_post');

¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2012-06-08 (¶â) 00:24:26 (2693d)