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