Skip site navigation (1) Skip section navigation (2)

Questions on using multi-byte character in a field of a table (BIG5)

From: "Hui Chun Kit, Jacky" <ckhui(at)school(dot)net(dot)hk>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Questions on using multi-byte character in a field of a table (BIG5)
Date: 1998-11-21 19:46:27
Message-ID: 36571893.45A70604@school.net.hk (view raw or flat)
Thread:
Lists: pgsql-hackers
Dear all,

    I have some difficult time in using postgresql 6.4 with chinese BIG5

characters. I am just looking for storing BIG characters in a text field

and retrieve correctly. I have --enable-mb when I compile. I am on RH5.1

intel platform, running PG 6.4.
    I just created a testing table test
    create test ( name char(20), age int);
    For most of the characters in BIG5, it works and I can insert
chinese name into the table, but for some characters, esp my own name,
it does not work. I have check the problem out . But cannot solve it.
    It is because in my name under BIG5 coding it is "5cb3 54ab c7b3"
or
in ASCII code "263   \ 253   T 263 307" where two byte is a character.
That is "5cb3" ('263' '\' ) is the first character and '54ab' ( '253'
'T' ) becomes the second character. The problem is that somewhere
between storing the value into database and client frontend (Perl,
MSAccess) , the '\' is interpreted and thus the stored value becomes
"263  253   T 263 307" which is distorted.
    I don't know where exactly is the problem as when I use Mysql, it is

working fine.
    Could anyone give me some hints or help..
    Your help is really very appreciated!!!!!!!!!!!!!!!!


Best Rgds,
Jacky






pgsql-hackers by date

Next:From: Bruce MomjianDate: 1998-11-21 20:10:49
Subject: Re: [HACKERS] Allow ORDER BY a Function
Previous:From: Tom LaneDate: 1998-11-21 18:46:06
Subject: Re: [HACKERS] Problem with 6.3.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group