Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 363B7723ED9 for ; Sun, 20 Nov 2011 06:19:29 -0400 (AST) Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RS4Uj-0004QO-4H for pgsql-general@postgresql.org; Sun, 20 Nov 2011 10:19:29 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.77) (envelope-from ) id 1RS4UV-0005at-SZ; Sun, 20 Nov 2011 11:19:16 +0100 Date: Sun, 20 Nov 2011 11:19:15 +0100 From: hubert depesz lubaczewski To: pawel_kukawski Cc: pgsql-general@postgresql.org Subject: Re: invalid byte sequence for encoding "UTF8": 0x00 Message-ID: <20111120101915.GA10708@depesz.com> Reply-To: depesz@depesz.com References: <1321723932432-5007173.post@n5.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1321723932432-5007173.post@n5.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archive-Number: 201111/784 X-Sequence-Number: 182354 On Sat, Nov 19, 2011 at 09:32:12AM -0800, pawel_kukawski wrote: > Is there any way I can store NULL character (\u0000) in string ? > > Or there is only one option that I have change every text field to bytea. correct question is: why do you want to store \u0000 in text field? Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/