Skip to content

Commit

Permalink
www/search.php: Use ISO-8859-15
Browse files Browse the repository at this point in the history
Avoids Warning: pg_exec(): Query failed: ERROR: invalid byte sequence for
encoding "UTF8": 0xe1 0x66 0x69 in /usr/local/www/freshports/www/search.php
on line 908

fixes #447
  • Loading branch information
dlangille committed Apr 25, 2023
1 parent 8b05137 commit 6d3e4a2
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 6d3e4a2

Please sign in to comment.