pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Iain <iain@mst.co.jp>
To: pgsql-admin@postgresql.org
Subject: Can I change the character encoding for a DB?
Date: Mon, 26 Jan 2004 17:28:49 +0900
Message-ID: <000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb> (raw)

Hi All,

I created a DB with SQL_ASCII encoding but I want to change it to EUC_JP.
Can I do this without creating a new database? I didn't find a way in the
docs, sorry.

  set server_encoding = EUC_JP;

didn't work.

My understanding is that the encoding is purely information and doesn't
actually affect the data stored in the DB. Is that right?

The reason I want to do this is that my java app is corrupting Japanese
Kanji. I suspect that the JDBC driver uses this information. VB apps using
ODBS seem to be fine.

view thread (5+ messages)  latest in thread

Message-ID: <000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb>
Permalink:  ../000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb/
Also on:    postgresql.org/message-id/000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: iain@mst.co.jp
  Subject: Re: Can I change the character encoding for a DB?
  In-Reply-To: <000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb>
  References: <000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox