From 1ffa25152f18588b381fa9260f437f07d9a04003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 15 Apr 2024 10:33:24 +0200 Subject: =?UTF-8?q?=C5=A1ola?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prog/sear.php/index.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'prog/sear.php/index.php') diff --git a/prog/sear.php/index.php b/prog/sear.php/index.php index 1f90c9c..2e695c5 100644 --- a/prog/sear.php/index.php +++ b/prog/sear.php/index.php @@ -59,6 +59,8 @@ function query_google ($s, $image = false, $noredirect = false, $bindstring = fa } $results = []; $x = new DOMDocument(); + // file_put_contents("/tmp/x", $txtdoc); + $txtdoc = mb_convert_encoding($txtdoc, "ISO-8859-1"); $x->loadHTML($txtdoc); if ($image) foreach ($x->getElementsByTagName("div") as $div) { -- cgit v1.2.3