From 6d3e4a21979909632d09921c9515e27fa398b6d9 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Tue, 25 Apr 2023 12:31:08 +0000 Subject: [PATCH] www/search.php: Use ISO-8859-15 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 --- www/search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/www/search.php b/www/search.php index b0c70800..3a4de003 100644 --- a/www/search.php +++ b/www/search.php @@ -906,6 +906,7 @@ function WildCardQuery($db, $stype, $Like, $query) { echo "
$sql
\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);