From 062c75dd8265bbe57261a4154ead54fd782d4035 Mon Sep 17 00:00:00 2001 From: Mohammad Esfandiari Date: Tue, 8 Dec 2015 16:27:55 +0330 Subject: [PATCH] Update OpenGraph.php OpenGraph now support UTF-8 Encoding. --- OpenGraph.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenGraph.php b/OpenGraph.php index af2e7b6..4c7eac4 100644 --- a/OpenGraph.php +++ b/OpenGraph.php @@ -60,7 +60,7 @@ static public function fetch($URI) { curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); - $response = curl_exec($curl); + $response = mb_convert_encoding(curl_exec($curl), 'HTML-ENTITIES', 'UTF-8'); curl_close($curl);