Skip to content

Commit 062c75d

Browse files
committed
Update OpenGraph.php
OpenGraph now support UTF-8 Encoding.
1 parent faba415 commit 062c75d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

OpenGraph.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static public function fetch($URI) {
6060
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
6161
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
6262

63-
$response = curl_exec($curl);
63+
$response = mb_convert_encoding(curl_exec($curl), 'HTML-ENTITIES', 'UTF-8');
6464

6565
curl_close($curl);
6666

0 commit comments

Comments
 (0)