1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-31 13:50:23 +02:00

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) {