psycopg2+postgres check default charset of db or table

From: Peter Irbizon <peterirbizon(at)gmail(dot)com>
To: psycopg(at)postgresql(dot)org
Subject: psycopg2+postgres check default charset of db or table
Date: 2012-04-19 00:12:50
Message-ID: CABFuWSzAno2Oia-+3KRcuLAWYZRC3CJd5AGW2v1tFKica571XA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

Hello guys,
I am using python 2.7 and psycopg2. How could I find out default charset
used by database? I would like to check it and then according to used
charset decode returned strings.

I tried "select rdb$character_set_name from rdb$database" but it seems it
doesn't work for postgres. thank you

Responses

Browse psycopg by date

  From Date Subject
Next Message Joe Abbate 2012-04-19 00:30:05 Re: psycopg2+postgres check default charset of db or table
Previous Message Leon Starr 2012-04-01 17:42:21 Re: Using with Python 3, possible? how?