X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9E50ED1B4A4 for ; Mon, 26 Jan 2004 08:30:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84900-03 for ; Mon, 26 Jan 2004 04:29:32 -0400 (AST) Received: from millenium.mst.co.jp (unknown [210.230.185.241]) by svr1.postgresql.org (Postfix) with ESMTP id E756DD1B447 for ; Mon, 26 Jan 2004 04:29:29 -0400 (AST) Received: from mst1x5r347kymb (lc12114 [192.168.1.114]) by millenium.mst.co.jp (8.11.6p2/3.7W) with SMTP id i0Q8TFY32283 for ; Mon, 26 Jan 2004 17:29:15 +0900 Message-ID: <000901c3e3e6$6cd00060$7201a8c0@mst1x5r347kymb> From: "Iain" To: Subject: Can I change the character encoding for a DB? Date: Mon, 26 Jan 2004 17:28:49 +0900 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C3E431.DC2887C0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_FONT_FACE_ODD X-Spam-Level: * X-Archive-Number: 200401/226 X-Sequence-Number: 12089 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3E431.DC2887C0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit 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. ------=_NextPart_000_0005_01C3E431.DC2887C0 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi All,
 
I created a DB with SQL_ASCII enc= oding but=20 I want to change it to EUC_JP. Can I do this without creating a new databas= e? I=20 didn't find a way in the docs, sorry.
 
  set server_encoding =3D=20 EUC_JP;
 
didn't work.
 
My understanding is that the enco= ding is=20 purely information and doesn't actually affect the data stored in the DB. I= s=20 that right?
 
The reason I want to do this is t= hat my=20 java app is corrupting Japanese Kanji. I suspect that the JDBC driver = uses=20 this information. VB apps using ODBS seem to be=20 fine.
------=_NextPart_000_0005_01C3E431.DC2887C0--