From 5f55eb458f89197a4d3950021d0cd68573ac915f Mon Sep 17 00:00:00 2001 From: wonipapa Date: Fri, 1 Sep 2017 17:49:18 +0900 Subject: [PATCH] =?UTF-8?q?ISCS=20=ED=95=A8=EC=88=98=20=EB=B2=84=EA=B7=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epg2xml-web.php | 2 +- epg2xml.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epg2xml-web.php b/epg2xml-web.php index 5715447..661faa0 100644 --- a/epg2xml-web.php +++ b/epg2xml-web.php @@ -932,9 +932,9 @@ function GetEPGFromIscs($ChannelInfo) { endif; else : $response = $data['html']; - $response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8"); $pattern = '/(.*)<\/td>/'; $response = preg_replace_callback($pattern, function($matches) { return ''.htmlspecialchars($matches[1]).'';}, $response); + $response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8"); $dom = new DomDocument; libxml_use_internal_errors(True); if($dom->loadHTML($response)): diff --git a/epg2xml.php b/epg2xml.php index 7a4a689..0e37cab 100644 --- a/epg2xml.php +++ b/epg2xml.php @@ -951,9 +951,9 @@ function GetEPGFromIscs($ChannelInfo) { endif; else : $response = $data['html']; - $response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8"); $pattern = '/(.*)<\/td>/'; $response = preg_replace_callback($pattern, function($matches) { return ''.htmlspecialchars($matches[1]).'';}, $response); + $response = mb_convert_encoding($response, "HTML-ENTITIES", "UTF-8"); $dom = new DomDocument; libxml_use_internal_errors(True); if($dom->loadHTML($response)):