![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
"Chii-Tung Liu" <cdliou (AT) mail (DOT) cyut.edu.tw> writes: PostgreSQL version: 8.0.3 Operating system: Windows XP SP2 When compare two UTF-8 encoded string that contains Chinese words, the result is always TRUE Sorry, but UTF-8 encoding doesn't work properly on Windows (yet). Use some other database encoding. |
#2
| |||
| |||
|
|
The following bug has been logged online: Bug reference: 1721 Logged by: Chii-Tung Liu Email address: cdliou (AT) mail (DOT) cyut.edu.tw PostgreSQL version: 8.0.3 Operating system: Windows XP SP2 Description: mutiple bytes character string comaprison error Details: When compare two UTF-8 encoded string that contains Chinese words, the result is always TRUE 1. create a database test with encoding set to unicode CREATE DATABASE test WITH OWNER = postgres ENCODING = 'UNICODE' TABLESPACE = pg_default; 2. insert data with Chinese words INSERT into node set title='1 中文' 3. SELECT title from node where title > '1.1 ' would return '1 中文' 4. Both SELECT '1 中文' > '1.1' and SELECT '1.1' > '1 中文' return FALSE |
#3
| |||
| |||
|
|
Tom Lane wrote: Kris Jurka <books (AT) ejurka (DOT) com> writes: On Sun, 19 Jun 2005, Tom Lane wrote: Sorry, but UTF-8 encoding doesn't work properly on Windows (yet). Use some other database encoding. Shouldn't we forbid its creation then? There was serious discussion of that before the 8.0 release, but we decided not to forbid it. Check the archives; I don't recall the reasoning at the moment. UTF8 encoding works with the C locale assuming you don't care about ordering of the character set, e.g. Japanese. |
![]() |
| Thread Tools | |
| Display Modes | |
| |