From: | Andreas Hinz <news3(at)winopticc(dot)dk> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: 'order by' does "wrong" with unicode-chars (german umlauts) |
Date: | 2003-09-20 20:53:54 |
Message-ID: | 20030920225354.4f460e6c.news3@winopticc.dk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sat, 20 Sep 2003 18:39:35 +0200
skrev pilsl(at)goldfisch(dot)at (peter pilsl):
> It makes no difference if I use a database with encoding unicode:
>
ah(at)ahb:~$ LC_ALL=da_DK initdb
ah(at)ahb:~$ su postgres -c "/usr/local/pgsql/bin/createuser -ad ah"
ah(at)ahb:~$ createdb ah
ah(at)ahb:~$ psql ah
ah=# \l
List of databases
Name | Owner | Encoding
-----------+----------+-----------
ah | ah | SQL_ASCII
ah=# show client_encoding;
client_encoding
-----------------
SQL_ASCII
(1 row)
CREATE TABLE test (f1 varchar);
INSERT INTO test VALUES ('A');
INSERT INTO test VALUES ('B');
INSERT INTO test VALUES ('AA');
INSERT INTO test VALUES ('Æ');
INSERT INTO test VALUES ('Å');
INSERT INTO test VALUES ('Ø');
INSERT INTO test VALUES ('Ä');
INSERT INTO test VALUES ('Ö');
INSERT INTO test VALUES ('Ü');
SELECT * FROM test ORDER BY f1;
t
----
A
B
Ü
Æ
Ä
Ø
Ö
Å
AA
(9 rows)
Looks OK to me ;-)
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2003-09-20 20:55:54 | Catalog vs. user table format (was Re: State of Beta 2) |
Previous Message | Bruno Wolff III | 2003-09-20 20:45:24 | Re: This mail list and its policies |