Skip to content

Commit

Permalink
Merge pull request #448 from FreshPorts/447-search-pg_exec-query-fail…
Browse files Browse the repository at this point in the history
…ed-error-invalid-byte-sequence-for-encoding-utf8-0xe1-0x66-0x69-in-usrlocalwwwfreshportswwwsearchphp-on-line-908

www/search.php: Use ISO-8859-15
  • Loading branch information
dlangille authored Apr 25, 2023
2 parents 8b05137 + 6d3e4a2 commit bcd896e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/search.php
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,7 @@ function WildCardQuery($db, $stype, $Like, $query) {
echo "<pre>$sql<pre>\n";
}

pg_exec($db, "set client_encoding = 'ISO-8859-15'");
$result = pg_exec($db, $sql);
if (!$result) {
syslog(LOG_NOTICE, pg_last_error($db) . ': ' . $sql);
Expand Down

0 comments on commit bcd896e

Please sign in to comment.