diff --git a/lib/multiple-results.php b/lib/multiple-results.php index 449929b..3d70c06 100644 --- a/lib/multiple-results.php +++ b/lib/multiple-results.php @@ -121,7 +121,7 @@ if (startTab!=top.ICEcoder.selectedTab) { $fullPath = $path.$slash.$f; if(is_dir($fullPath)) { $ret .= phpGrep($q, $fullPath, $base); - } else if(stristr(file_get_contents($fullPath), $q)) { + } else if(stristr(toUTF8noBOM(file_get_contents($fullPath),false), $q)) { $bFile = false; $foundInSelFile = false; for ($i=0;$i0 && $foundInSelFile)) { $ret .= ""; - $ret .= str_replace($base,"",$fullPath)."
Found ".substr_count(strtolower(file_get_contents($fullPath)),$q)." times
"; + $ret .= str_replace($base,"",$fullPath)."
Found ".substr_count(strtolower(toUTF8noBOM(file_get_contents($fullPath),false)),$q)." times
"; if (isset($_GET['replace'])) { $ret .= "
replace
"; };