client_encoding is WIN1252 on ErrorMessage at the StartupMessage - Mailing list pgsql-interfaces

From Jean-Yves Garneau
Subject client_encoding is WIN1252 on ErrorMessage at the StartupMessage
Date
Msg-id YQBPR0101MB453883F750587BB0EF9B6738FF89A@YQBPR0101MB4538.CANPRD01.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: client_encoding is WIN1252 on ErrorMessage at the StartupMessage
List pgsql-interfaces

I’m developing the wire protocol on programmable logic controller (PLC) to communicate with the backend server.

The PostgreSQL server run on Windows 10 French Canadian.

The client_encoding on the server and database encoding is UTF8.

The collation and character type are French_Canada.1252.

The PLC is UTF8.

After TCP/IP connection, the PLC send the “StartupMessage” but receive an “ErrorResponse” because no access right.

The error message is in WIN1252 not UTF8!

If grant connect access to user and get data from database all is UTF8!

Is it a bug or bad setup?

 

Regards,

pgsql-interfaces by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Version 3.18.0 of DBD::Pg released (Perl DBI driver for Postgres)
Next
From: Tom Lane
Date:
Subject: Re: client_encoding is WIN1252 on ErrorMessage at the StartupMessage