Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

psycopg by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group