The message language and character set settings are the same as when using the library for C.
Refer to "5.2.2 Message Language and Character Set Settings" in "C Library (libpq)" for information on the settings for the library for C.