Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 5D63CB5DBD6 for ; Wed, 10 Aug 2011 03:20:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 29018-03 for ; Wed, 10 Aug 2011 06:19:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by mail.postgresql.org (Postfix) with ESMTP id 130C1B5D8C5 for ; Wed, 10 Aug 2011 03:19:57 -0300 (ADT) Received: by pzk37 with SMTP id 37so2112881pzk.15 for ; Tue, 09 Aug 2011 23:19:56 -0700 (PDT) Received: by 10.142.144.5 with SMTP id r5mr7432039wfd.319.1312957196642; Tue, 09 Aug 2011 23:19:56 -0700 (PDT) Received: from [10.1.1.8] (124-169-181-228.dyn.iinet.net.au [124.169.181.228]) by mx.google.com with ESMTPS id t7sm322633wfl.14.2011.08.09.23.19.53 (version=SSLv3 cipher=OTHER); Tue, 09 Aug 2011 23:19:55 -0700 (PDT) Message-ID: <4E422305.6070404@ringerc.id.au> Date: Wed, 10 Aug 2011 14:19:49 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: pgsql.admin@googlegroups.com CC: RBharathi , pgsql-admin@postgresql.org Subject: Re: Character set equivalent for AL32UTF8 References: <0149564b-0eea-4ed9-8521-0ab6efec2a4d@glegroupsg2000goo.googlegroups.com> In-Reply-To: <0149564b-0eea-4ed9-8521-0ab6efec2a4d@glegroupsg2000goo.googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201108/71 X-Sequence-Number: 38058 On 2/08/2011 8:52 PM, RBharathi wrote: > Hi, > We plan to migrate data from Oracle 11g with characterset AL32UTF8 to a Postgres db. > > What is the euivalent charecterset to use in Postgress. We see only the UTF-8 option. What's AL32UTF8 ? That's not a standard charset name or widely recognised charset. Is it some Oracle specific feature? If so, what makes it different to UTF-8 and why do you need it? Documentation link? References? A 30-second Google search turned up this: http://decipherinfosys.wordpress.com/2007/01/28/difference-between-utf8-and-al32utf8-character-sets-in-oracle/ "As far as these two character sets go in Oracle, the only difference between AL32UTF8 and UTF8 character sets is that AL32UTF8 stores characters beyond U+FFFF as four bytes (exactly as Unicode defines UTF-8). Oracle’s “UTF8” stores these characters as a sequence of two UTF-16 surrogate characters encoded using UTF-8 (or six bytes per character). Besides this storage difference, another difference is better support for supplementary characters in AL32UTF8 character set." Is this what you're taking about? If so, what's the concern? Have you checked to see if PostgreSQL's behavior fits your needs? -- Craig Ringer