string get_charset()
The PostgreSQL name for the current connection charset.
set_charset() , getruntimeparameters() , http://search.postgresql.org/search?u=%2Fdocs%2F&q=character+sets