Igor Korot <ikorot01@gmail.com> writes:
> But what is the purpose of setting client encoding on the server? It is for
> the client
No, it's to tell the server what encoding to transmit to the client
(as well as what encoding strings coming from the client are in).
regards, tom lane