Received: from prod1-int.codesense.com (unknown [193.10.39.189]) by postgresql.org (Postfix) with ESMTP id 6499B474E49 for ; Mon, 25 Mar 2002 06:14:58 -0500 (EST) Received: from gmg (gmg.codesense.com [192.168.0.183]) by prod1-int.codesense.com (8.11.4/8.11.4) with ESMTP id g2PB4Uf12799 for ; Mon, 25 Mar 2002 12:04:30 +0100 From: "Niclas Gustafsson" To: Subject: Re: to --enable-locale or not to --enable-locale? Date: Mon, 25 Mar 2002 12:14:38 +0100 Organization: CodeSense AB Message-ID: <001a01c1d3ee$42345e50$b700a8c0@gmg> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Importance: Normal In-Reply-To: <200203171015.g2HAFB7O017372@www1.translationforge> X-Archive-Number: 200203/301 X-Sequence-Number: 3835 Hi, I'm having trouble sorting my data. I'm using PostgresQL 7.2 compiled with: --enable-multibyte=3DLATIN1 --enable-locale I've also created a test db, with one table: CREATE DATABASE "testdb" WITH ENCODING =3D 'LATIN1'; And CREATE TABLE "sorttest" ( "id" int8 NOT NULL,=20 "data" varchar(100),=20 CONSTRAINT "sorttest_pkey" PRIMARY KEY ("id") ) WITH OIDS; Then I've inserted some test values which seem to be sorted wrongfully when I issue an=20 select * from sorttest order by data This is the output I get: aa a=E5 a=E4 =E5a =E4a ab =E5b =E4b a=F6 ba b=E5 b=E4 bb b=F6 za z=F6 I want it sorted in abcd..z=E5=E4=F6 What am I missing here? Any Ideas? Regards, Niclas Gustafsson -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Jean-Michel POURE Sent: den 17 mars 2002 11:15 To: Peter Eisentraut; Morten Sickel Cc: Pgsql-Admin (E-post) Subject: Re: [ADMIN] to --enable-locale or not to --enable-locale? Le Vendredi 15 Mars 2002 17:19, Peter Eisentraut a =E9crit : > --enable-recode is a simplified version of part (2) of multibyte, which > only works for single-byte encodings. =A0It's mostly useful for environments > where Unix and Windows use different character sets for the same language. > (I think Czech was an example.) As of PostgreSQL 7.2+, --enable--recode provides: - Unicode <-> Latin1/Latin15 recoding, - Unicode <-> SJIS (=3DJapanese Multibyte), - and much more... Client and server encodings can be set separately. Examples: - CREATE DABASE foo WITH ENCODING 'Unicode'; - SET CLIENT_ENCODING =3D 'Latin9' (=3DISO-8859-15) =3D Latin1 + euro symbo= l. In pgAdmin2, we plan to take advantage of these new features to : - change client encoding on the fly, - display multi-byte text. Cheers, Jean-Michel POURE ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org