使用缓存的时候显示乱码如何解决?

#1 zf19870131

如题。
 
"view" => array(
  'enabled' => TRUE,
  'config' => array(
   'template_dir' => APP_PATH.'/tpl',
   'compile_dir' => APP_PATH.'/tmp',
   'cache_dir' => APP_PATH.'/tmp',
   'left_delimiter' => '<{',
   'right_delimiter' => '}>',
  ),
),


 
function test()
{
  $test = "我的测试";
  $this->test = $test;
  $this->display("../tpl/index.html");
}


 


index


index.html文件


$test=<{$test}>






2010-04-17 23:35:13

#2 zf19870131

2010-04-17 23:36:32

#3 zf19870131

不知道为什么,显示不了图片。。。

2010-04-17 23:36:54

#4 zf19870131

反正就是显示乱码。

index.html�ļ�

$test=我的测试

2010-04-17 23:37:11

#5 zf19870131

显示的是 html 页面中汉字是乱码,缓存的汉字不是乱码。

2010-04-17 23:37:48

#6 youngqj

页面字符编码问题吧

2010-04-18 00:02:25

#7 zf19870131

问题已经解决了,是页面编码的问题,改成utf-8就好了。

2010-04-18 08:04:09