From 06f8b61f623eadd9e62987c96d8a8580128d8a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Sat, 25 Jun 2016 10:08:06 +0200 Subject: [PATCH] fix encoding issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- bridges/YoutubeBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridges/YoutubeBridge.php b/bridges/YoutubeBridge.php index b515e4f..3efbca3 100644 --- a/bridges/YoutubeBridge.php +++ b/bridges/YoutubeBridge.php @@ -118,7 +118,7 @@ class YoutubeBridge extends BridgeAbstract { private function ytBridgeFixTitle($title) { // convert both Ӓ and " to UTF-8 - return html_entity_decode(mb_convert_encoding(trim($title), 'UTF-8', 'HTML-ENTITIES')); + return html_entity_decode($title,ENT_QUOTES,'UTF-8'); } public function collectData(array $param) {