Re: Inserting Unicode into Postgre - Mailing list pgsql-general

From He Weiping
Subject Re: Inserting Unicode into Postgre
Date
Msg-id 3ADBFE32.FE10D345@zhengmai.com.cn
Whole thread Raw
In response to Inserting Unicode into Postgre  ("Firestar" <theebh@yahoo.com>)
List pgsql-general
Firestar wrote:

> Hi,
>
> I'm currently using PostgreSQL 7.0 on Solaris. My Java program receives
> strings in Big5
> encoding and will store them in PostgreSQL (via JDBC). However, the inserted
> strings become
> multiple '?' (question marks) instead everytime i do a insert command. And
> when i retrieve them,
> via JDBC, the string becomes those question marks.
>
> Is the problem due to the Unicode encoding that Java String uses, or must i
> enable multibyte-support
> in my postgre installation? If i enable multibyte support, should i create
> my table with Unicode support,
> or Big5?
>

Upgrade to just released 7.1,
now postgres can do unicode conversion to you.
(thanks to Mr. Tatsuo Ishii)
I think you should enable both  enable-multibyte & enable-unicode-conversion
switch.
when building postgresql.

regards

Laser


pgsql-general by date:

Previous
From: "Oliver Elphick"
Date:
Subject: Re: Schema Import
Next
From: fabrizio.ermini@sysdat.it
Date:
Subject: Re: Non-english articles on the techdocs.postgresql.org website