summaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--prog/sear.php/index.php2
1 files changed, 2 insertions, 0 deletions
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) {