This is to help make it more obvious what the problem is, if the
encoding isn't what the test expects.
SET client_min_messages = warning;
\set ECHO none
RESET client_min_messages;
+-- must have a UTF8 database
+SELECT getdatabaseencoding();
+ getdatabaseencoding
+---------------------
+ UTF8
+(1 row)
+
SET client_encoding TO 'KOI8';
SELECT unaccent('foobar');
unaccent
\set ECHO all
RESET client_min_messages;
+-- must have a UTF8 database
+SELECT getdatabaseencoding();
+
SET client_encoding TO 'KOI8';
SELECT unaccent('foobar');