Re: Charset Win1250 on Windows and Ubuntu - Mailing list pgsql-general

From Durumdara
Subject Re: Charset Win1250 on Windows and Ubuntu
Date
Msg-id 9e384ef60912210126j345fa4f2r86aecac411a3c73c@mail.gmail.com
Whole thread Raw
In response to Re: Charset Win1250 on Windows and Ubuntu  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
Responses Re: Charset Win1250 on Windows and Ubuntu  (Martijn van Oosterhout <kleptog@svana.org>)
Re: Charset Win1250 on Windows and Ubuntu  (Alban Hertroys <dalroi@solfertje.student.utwente.nl>)
Re: Charset Win1250 on Windows and Ubuntu  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general
Hi!

2009/12/19 Albe Laurenz <laurenz.albe@wien.gv.at>
If you need the data in WIN1250 on the client side, change the client encoding to WIN1250.

So:
- Create the database with UTF8.
- Change the client encoding to WIN1250 (e.g. by setting the environment variable PGCLIENTENCODING).
- Import the dump of the Windows database. It will be converted to UTF-8.
- Make sure that the client program has client encoding WIN1250.

Yours,
Laurenz Albe

So if I have Python and pygresql, can I set this value in Python?
The main problem that I don't want to set this value globally - possible another applications want to use another encoding...

Thanks for your help:
   dd

pgsql-general by date:

Previous
From: Dave Page
Date:
Subject: Re: PostgreSQL@FOSDEM 2010 - Call for talks
Next
From: Alex -
Date:
Subject: Re: PL/Perl Performance Problems