Re: How to insert Chinese (big5) through JDBC? - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: How to insert Chinese (big5) through JDBC?
Date
Msg-id Pine.LNX.4.33.0307310408000.21596-100000@leary.csoft.net
Whole thread Raw
In response to Re: How to insert Chinese (big5) through JDBC?  (Eric Tan <neltan2002@yahoo.com.hk>)
Responses Re: How to insert Chinese (big5) through JDBC?
List pgsql-jdbc

On Thu, 31 Jul 2003, [big5] Eric Tan wrote:

> Hi,
>   I can now insert Chinese!!
>   I'm now using EUC_TW as the database encoding.
>   However, the default client encoding is now EUC_TW. (that's why I
> cannot insert Chinese). I have to exe "set client_encoding to 'Big5';"
> when inserting and selecting.
>
>   Can I set Big5 as the default client_encoding ?
>

You can make it the default for the database or for the user you are
connecting as.  Try running

ALTER DATABASE <databasename> SET client_enconding TO big5;

or

ALTER USER <username> SET client_encoding TO big5;

Kris Jurka



pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: unsubscribe
Next
From: Eric Tan
Date:
Subject: Re: How to insert Chinese (big5) through JDBC?