If the .NET Data Provider is used, it will automatically set the encoding system on the client to UTF-8, so there is no need to configure this.
See
Refer to "Automatic Character Set Conversion Between Server and Client" in "Server Administration" in the PostgreSQL Documentation for information on encoding systems.
You must match the language settings for the application runtime environment with the message locale settings of the database server.
Set language using the "System.Globalization.CultureInfo.CreateSpecificCulture" method.
Example
Code example for changing the locale in a C# application
System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.CreateSpecificCulture("en");