Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaCEx-0001ZA-I1 for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2018 03:12:15 +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 1eaCEv-00004v-H7 for pgsql-general@arkaria.postgresql.org; Sat, 13 Jan 2018 03:12:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eaCEu-0008WR-Nu for pgsql-general@lists.postgresql.org; Sat, 13 Jan 2018 03:12:13 +0000 Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eaCEr-0004zg-DX for pgsql-general@postgresql.org; Sat, 13 Jan 2018 03:12:10 +0000 Received: by mail-io0-x242.google.com with SMTP id n14so7912123iob.4 for ; Fri, 12 Jan 2018 19:12:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zD2o6AfGyiwU9D501auupWgE3PXZZCYoXBL4njwXAO8=; b=I90zvqLVv8eTaJdfZeliPgs1wtrPUMsWDKqFkoEusJYnN26eRDXwL5B+Q/Szc/n/2o +nmh09yOW2R6H2VMxFpQesr7EErEvJ4JdHuXAZs7051ZmfyAStdadiRKHufSNc0ZVnEq mERlfCrNE614sPVbxSc+WuHbDiQ6g+/9gcIlXGwpJGaU7nX2obrpCkfKIUNwrMT1Wh4v YcrSzhnPqG749Uizcra4NYphcxuMAVOMJo15gGvIGkvERTjRe8TIqJKaBB/qPNPeosyD W0t9zYoCjjpvYDMvkDw1rHXAVo25qJYWU6+yydZOY8iUjKKy/RHHQ2l4TWSLY5q4NIhh 1Xfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=zD2o6AfGyiwU9D501auupWgE3PXZZCYoXBL4njwXAO8=; b=tFR+IgtpCdbCy82SJXXNl85ipztBImDZnvRUgApwl8F5BzF2MCvWEcIViQcfl8zNn8 hLhYx1OlQgrJ0YY80Qvo74ymugCxpqbs2IhqinDSj1oqyaV621uhLB4Dehfc4weqQntm YfTZJb8WST5zs2fyJjarnkFZtNuAxlZk5pcU2jNacwyx/bBahjY/6wOZSdykdueLbqEl j3uMBMynbbNOofp/lAwfBT1A5PK7dyrSs7okZ997GQArjHANW+Jnsv2MSYUaVFwGE9Z7 DMvydvCqUVEKj1w6CPsdTZ/Eo9NJAIQFBbwUsGFZe637ulMi7KGxPcizs6jXSXy28FSE OApg== X-Gm-Message-State: AKwxytdJvstTy62oLdIvdyQbD28i8bz3k7IYechFQYR8f+phHcyC7I/m omuxMU7jT58TTaKMTDQxOy0chvYs X-Google-Smtp-Source: ACJfBosaf0obfF2VJGbpDmGIRfTffDQyNWlhCMHIPuoncoFYOuVdU6r1mAicJKCgNuoE3GP7JDPl6Q== X-Received: by 10.107.131.219 with SMTP id n88mr6369033ioi.258.1515813128476; Fri, 12 Jan 2018 19:12:08 -0800 (PST) Received: from ?IPv6:2605:a601:2062:d00:6dd2:d889:b065:ff5b? ([2605:a601:2062:d00:6dd2:d889:b065:ff5b]) by smtp.gmail.com with ESMTPSA id g136sm2478885ioe.4.2018.01.12.19.12.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jan 2018 19:12:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: characters converted to ??? in postgres From: armand pirvu In-Reply-To: Date: Fri, 12 Jan 2018 21:11:36 -0600 Cc: "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8C59A8CA-AEED-4443-91A3-D4D6F4D50BBA@gmail.com> References: <59E42D78-E9AA-404A-9836-9A474ACFDDE3@gmail.com> <49e0edb1-5de6-21b2-6ab4-5264aff6b661@2ndquadrant.com> <2D4E91FE-E739-4775-BB4B-C5548E8E1FD0@gmail.com> To: Peter Eisentraut X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yes it appears to be a separate issue but using OS X is the only way I = could reproduce trying to see with my own eyes so to speak I did though a quick java program and that confirmed to me (at least so = far) that the whole issue resides in the so called data object Thank you so much for help and insight =E2=80=94 Armand > On Jan 12, 2018, at 8:10 AM, Peter Eisentraut = wrote: >=20 > On 1/11/18 20:52, armand pirvu wrote: >> The -n flag worked fine on OS X. I don=E2=80=99t have this issue on = Centos. As a side question I wonder why was postgres built with libedit = instead of libreadline , just curious. >=20 > You'll have to ask that of whoever built the binaries you are using. > There are different sources. >=20 > libedit is part of the macOS operating system, whereas libreadline has > to be obtained separately, so that's probably a reason. >=20 >> 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 ?=20 >=20 > That appears to be a completely separate issue. >=20 > --=20 > Peter Eisentraut http://www.2ndQuadrant.com/ > PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services