Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T76gI-0006q3-2l for pgsql-jdbc@postgresql.org; Thu, 30 Aug 2012 15:29:18 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T76g6-0001kG-3w for pgsql-jdbc@postgresql.org; Thu, 30 Aug 2012 15:29:07 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T75UP-0000Ly-HG for pgsql-jdbc@postgresql.org; Thu, 30 Aug 2012 07:12:57 -0700 Date: Thu, 30 Aug 2012 07:12:57 -0700 (PDT) From: carmentl12 To: pgsql-jdbc@postgresql.org Message-ID: <1346335977524-5721903.post@n5.nabble.com> In-Reply-To: <1345831369323-5721132.post@n5.nabble.com> References: <1345831369323-5721132.post@n5.nabble.com> Subject: Re: Problem with client_encoding UTF8 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) X-Archive-Number: 201208/78 X-Sequence-Number: 23233 I found a possible solution: instead of read the contents of the script I execute it with the command psql like this, Runtime.getRuntime().exec("psql -U " + user + " -h " + host + " -d " + dbName + " -f " + path); -- View this message in context: http://postgresql.1045698.n5.nabble.com/Problem-with-client-encoding-UTF8-tp5721132p5721903.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.