Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ea02i-0005BW-6s for pgsql-general@arkaria.postgresql.org; Fri, 12 Jan 2018 14:10:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ea02h-0000eS-Qf for pgsql-general@arkaria.postgresql.org; Fri, 12 Jan 2018 14:10:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ea02h-0000eF-CR for pgsql-general@lists.postgresql.org; Fri, 12 Jan 2018 14:10:47 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ea02d-0001JT-VQ for pgsql-general@postgresql.org; Fri, 12 Jan 2018 14:10:46 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id D84C820CA3; Fri, 12 Jan 2018 09:10:40 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 12 Jan 2018 09:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Fs6Msk iYW9SePtbsmvjFucHqwkuq5Kbh872u5DakHvo=; b=g8FSR0DFeqVfQEMX7tGY8S jj5k+j0CpCfvIajjO1ZJxFfTOMD9c2ye2wOeTd9iYNjTnF46e8VTL7BEXZTG0j+W zTNJe5zPRD8L2UtgqB2AutJ9ltXDmNR1tKK0I5PjheCMvgwkHBX1SV9kCkJ/apRH zTicp45lq4mFmx2fPNTFy+QWMxHmZv7lx2VnAwJki6psiiuTL5Tt/Tg+7QCxS5wv aypn6XMNZX5ipRAAIuzGNOMQ+rRc7VwfjWxM+4jqeIckr6t5mcDbnBhUShW6Rau+ xseB4fncSmo7vO9PwBAwdsRpsuIXj9tsMeR+lZ0XopeL8C6vjEh6bOK/657sggoA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 6D7F37E3D4; Fri, 12 Jan 2018 09:10:40 -0500 (EST) Subject: Re: characters converted to ??? in postgres To: armand pirvu References: <59E42D78-E9AA-404A-9836-9A474ACFDDE3@gmail.com> <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com> <2D4E91FE-E739-4775-BB4B-C5548E8E1FD0@gmail.com> Cc: "pgsql-general@postgresql.org" From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Fri, 12 Jan 2018 09:10:39 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <2D4E91FE-E739-4775-BB4B-C5548E8E1FD0@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/11/18 20:52, armand pirvu wrote: > The -n flag worked fine on OS X. I don’t have this issue on Centos. As a side question I wonder why was postgres built with libedit instead of libreadline , just curious. You'll have to ask that of whoever built the binaries you are using. There are different sources. libedit is part of the macOS operating system, whereas libreadline has to be obtained separately, so that's probably a reason. > Back to my developer issue , he is using what he calls a data object in java. Apparently this is the place where this bad conversion happens, in other words it passes to the backend the ?? characters > Any similar trick I could use on the postgres jdbc driver ? That appears to be a completely separate issue. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services