pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Natalya Pyalling <mak@rtsoft.msk.ru>
To: pgsql-admin@postgreSQL.org
To: pgsql-general@postgreSQL.org
Subject: Problem with multibyte encoding and locale support
Date: Wed, 16 Aug 2000 12:27:13 +0400
Message-ID: <005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru> (raw)

Hello, all!

I want to configure postgresql as server with encoding on the fly (Postgres
7.0.2). I have few databases with KOI8 encoding and few ones with WIN
encoding. I ran ./configure --enable-locale --enable-multibyte=KOI8, made
and installed it. Then I ran initdb -E KOI8 and loaded my databases with
proper encoding in createdb.
Case 1. When I tried to connect db
$psql news
=# \encoding KOI8
=# select * from subscriber order by last;
I had got correct result. (DB news have KOI8 encoding).

Case 2. I tried to connect another db isrts with WIN encoding.
=# \c isrts
=# \encoding KOI8
=# select * from istor order by manager;
I had got WRONG result. (DB isrts have WIN encoding) The sort order was
wrong.

I recompiled postgresql server ./configure --enable-multibyte=KOI8 and tried
same commands.
In first case (db news with KOI8 encoding) I had WRONG result. The sort
order was wrong again.
In the second case (db isrts with WIN encoding) I had CORRECT result.

What does it mean? What did I do wrong?
Any help would be appricated.
Thanks.

Good Luck, Natalya Pyalling.

P.S. Please, reply to mak@rtsoft.msk.ru.




Message-ID: <005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru>
Permalink:  ../005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru/
Also on:    postgresql.org/message-id/005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mak@rtsoft.msk.ru, pgsql-general@postgreSQL.org
  Subject: Re: Problem with multibyte encoding and locale support
  In-Reply-To: <005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru>
  References: <005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox