Set client-side connection encoding
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Feb 2024 20:31:03 +0000 (14:31 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 23 Feb 2024 20:31:03 +0000 (14:31 -0600)
examples/etc/pgwui.ini
examples/misc/development.ini
src/pgwui_server/pgwui_server.py

index 7fb9a2efb342b2f6f3991b62450238fa92980830..418378ed440e27d2392efb1dd24146d4c1f60e82 100644 (file)
@@ -25,11 +25,21 @@ use = egg:PGWUI_Server
 pgwui.pg_host =
 pgwui.pg_port = 5432
 
-
 # The database to use by default.
 # Not having the setting is the same as "", the empty string.
 # pgwui.default_db = 
 
+# The encoding used for strings on the client-side.
+# This setting defaults to "auto", the special PostgreSQL value which
+# sets the client_encoding based on the encoding of the client
+# system's locale.
+# Set this value to "", the empty string, to use the server's encoding
+# as the client encoding.  (pgwui.client_encoding =) (or just omit the
+# declaration)
+# The list of PostgreSQL encodings can be found at:
+# https://www.postgresql.org/docs/current/multibyte.html#MULTIBYTE-CHARSET-SUPPORTED
+# pgwui.client_encoding = auto
+
 
 # How to link to the site's home page.
 #
index 0712b36902d25f180e73dc14e7ad0140250753c5..8a38a3780829b63d48c544a326f73c40c20bd687 100644 (file)
@@ -29,6 +29,12 @@ pgwui.pg_port = 5432
 # Not having the setting is the same as "", the empty string.
 # pgwui.default_db = 
 
+# The encoding used for strings on the client-side.
+# This setting defaults to "auto", the special PostgreSQL value which
+# sets the client_encoding based on the encoding of the client
+# system's locale.
+# pgwui.client_encoding = auto
+
 
 # How to link to the site's home page.  Useful when the home page is
 # not the PGWUI menu.
index 85e16e4698411f90617678794ce6663a0eaa0111..2efa4ac8044e7a99c231d0dcacc6986bf4afa4bb 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2018, 2019, 2020, 2021 The Meme Factory, Inc.
+# Copyright (C) 2018, 2019, 2020, 2021, 2024 The Meme Factory, Inc.
 # http://www.karlpinc.com/
 
 # This file is part of PGWUI_Server.
@@ -44,6 +44,7 @@ SETTINGS = set(
     ['pg_host',
      'pg_port',
      'default_db',
+     'client_encoding',
      'dry_run',
      'route_prefix',
      'validate_hmac',