diff --git a/meta-oe/classes/ptest-pgxs.bbclass b/meta-oe/classes/ptest-pgxs.bbclass
index 89f482ba53..4c18ea84f5 100644
--- a/meta-oe/classes/ptest-pgxs.bbclass
+++ b/meta-oe/classes/ptest-pgxs.bbclass
@@ -91,7 +91,7 @@ chown -R postgres:postgres "$WORK"
 LOG="$WORK/pg_regress.log"
 { su postgres -c "cd $WORK && $PG_REGRESS \
       --temp-instance=$WORK/tmp_check --temp-config=$WORK/ptest.conf \
-      --bindir=$PGBIN --dbname=contrib_regression \
+      --bindir=$PGBIN --dbname=contrib_regression --encoding=UTF8 \
       $REGRESS_OPTS $REGRESS" 2>&1; echo $? > "$WORK/rc"; } |
     tee "$LOG" |
     sed -n -e 's/^ok [0-9]* *[-+] *\([^ ]*\).*/PASS: \1/p' \
