[Gambas-user] Strange CGI error with gb.db.postgresql
g4mba5 at gmail.com
Mon Jun 17 13:35:50 CEST 2019
Le 17/06/2019 à 11:16, Christof Thalhofer a écrit :
> I use a Gambas program via CGI from an Apache2 server which works pretty
> well. If it starts, it opens a connection to a Postgresql server and
> does a sql query, which also works whithout any problemy, except that
> this is logged in /var/log/apache2/error.log when a connection is
>> AH01215: gb.db.postgresql: warning: cannot set encoding to ANSI_X3.4-1968: /home/doms/degapp/degapp.gambas
> I tried to set Postgresql client encoding to UTF8 via sql at start of
> the connection and also tried to set the encoding via environment
> variable in apaches config with
> "SetEnv PGCLIENTENCODING UTF8"
> Without success.
> Any idea?
> Alles Gute
> Christof Thalhofer
I have some similar problems too. I think it comes from the language
environment variables that are set by the web server, and that the CGI
program get consequently.
More information about the User