After smarty turns on the cache, the page will be garbled for the first time, and then it will be normal. The project and the page are all utf8 encoded, so I don’t know about the *** issue.
The PHP code is as follows (smarty3.1.16)
<?php
include_once './libs/Smarty.class.php';
$ smarty = new Smarty();
$smarty->caching =1;
$smarty->cache_lifetime =3 ;
$smarty->assign( "name","Everything goes well");
$smarty->display("name.html");
After changing the php version, I found that it was caused by php6 itself. I don’t know what caused it specifically. Anyway, try to use php5 or 7 instead of 6.
Can anyone explain it?