Received: from rtsoft.msk.ru (rtsoft.rmt.ru [194.67.160.206]) by hub.org (8.10.1/8.10.1) with ESMTP id e7G8WLn62614; Wed, 16 Aug 2000 04:32:22 -0400 (EDT) Received: from makushina (makushina.rtsoft.msk.ru [192.168.200.49]) by rtsoft.msk.ru (8.9.3/8.9.3) with SMTP id MAA25797; Wed, 16 Aug 2000 12:46:35 +0400 Message-ID: <005901c0075b$ca0b4b10$31c8a8c0@makushina.rtsoft.msk.ru> From: "Natalya Pyalling" To: , Subject: Problem with multibyte encoding and locale support Date: Wed, 16 Aug 2000 12:27:13 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 X-Archive-Number: 200008/20 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.