PQclientEncoding Function

public function PQclientEncoding(conn) result(res)

Returns the client encoding.

It returns the encoding string such as UTF8. This function wraps both PQclientEncoding and pg_encoding_to_char.

cf. PostgreSQL Documentation

Arguments

Type IntentOptional Attributes Name
type(c_ptr), intent(in) :: conn

Return Value character(len=:), pointer


Contents