Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQEVM-0004Os-UZ for pgsql-bugs@postgresql.org; Mon, 22 Oct 2012 09:41:05 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQEVG-00064C-UD for pgsql-bugs@postgresql.org; Mon, 22 Oct 2012 09:41:04 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TQEVG-0005f5-4x for pgsql-bugs@postgresql.org; Mon, 22 Oct 2012 09:40:58 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TQEVF-00084e-Nv for pgsql-bugs@postgresql.org; Mon, 22 Oct 2012 09:40:57 +0000 Date: Mon, 22 Oct 2012 09:40:57 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7617: Encoding Behavior To: pgsql-bugs@postgresql.org From: corekms@gmail.com X-Pg-Spam-Score: -1.7 (-) X-Archive-Number: 201210/196 X-Sequence-Number: 34496 The following bug has been logged on the website: Bug reference: 7617 Logged by: Kim, min-sirk Email address: corekms@gmail.com PostgreSQL version: 9.1.6 Operating system: CentOS release 5.8(Red Hat 4.1.2-52), 32-bit Description: = What I did is.. 1. initdb -D $PGDATA -E EUC_KR 2. create database euckrdb; 3. create database utf8db with = encoding=3D'utf8' lc_collate=3D'ko_KR.utf8' lc_ctype=3D'ko_KR.utf8' template template0; -- I know that EUC_KR has 2bytes per 1 korean char and UTF-8 has 3 bytes utf8db per 1 korean char. However, Two databases has same octet_length of 2 bytes per 1 Korean char. =