Casting to UTF-8 before converting to JSON.

This commit is contained in:
Teromene 2016-01-19 12:18:54 +00:00
parent 5f01b7fe7d
commit 259e5ef9de

View file

@ -24,6 +24,9 @@ class FileCache extends CacheAbstract{
public function saveData($datas){
$this->isPrepareCache();
//Re-encode datas to UTF-8
$datas = Cache::utf8_encode_deep($datas);
$writeStream = file_put_contents($this->getCacheFile(), json_encode($datas));
if(!$writeStream) {