When you create a new postgresql cluster you can specify an encoding for the cluster, but I'm not sure to know how to retrieve it once the cluster has been created.
I have seen that with
\encoding you can see an encoding, but I don't know it this is the encoding of the cluster or the encoding of the client.
I have also seen that with
\l I can see the encoding used by each database.
SHOW server_encoding shows another encoding.
What is the correct way to query for the value using during initialization?