Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bS4p0-0007sH-B8 for pgadmin-hackers@arkaria.postgresql.org; Tue, 26 Jul 2016 16:03:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bS4oz-00042Q-Oc for pgadmin-hackers@arkaria.postgresql.org; Tue, 26 Jul 2016 16:03:05 +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 1bS4oz-00042J-5E for pgadmin-hackers@postgresql.org; Tue, 26 Jul 2016 16:03:05 +0000 Received: from mail-it0-x235.google.com ([2607:f8b0:4001:c0b::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bS4ov-0002lu-2g for pgadmin-hackers@postgresql.org; Tue, 26 Jul 2016 16:03:04 +0000 Received: by mail-it0-x235.google.com with SMTP id f6so118048057ith.1 for ; Tue, 26 Jul 2016 09:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=WPbT6Y/tZadcbPYiDHp8ceZORb17EZNZFYJMd/RU1DA=; b=uXIBjy2UWXs19tbMwsxGZX8F6k2cvDgATk82f41RGOkmXQN6a1eR9xGPyBLjaRa88e MyEzu7HwcXPtrJelSro15avtFNJbpSbsM0HG/vqMaANQaAbs0Eehl2bZ7ox0kKTWwHwr kV12WRVhmPfW1mk/AFtLyKVm840HBmyWCazaZFt3kXRw+PUPZinFdZPF73G79IshZNP0 4lyop3G4A27hnzeYGU/nHjjVeSE75AzbmZ8ddLZSn2IpMqM4ebbBlEKWULeDzR99lTav ECaW8grwAZH+Wkwdym/kEB+m86ODTY3aucWnEd14ysgknZ92D76Y9R2GRodePKS3a7q5 I5Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=WPbT6Y/tZadcbPYiDHp8ceZORb17EZNZFYJMd/RU1DA=; b=JkdNBF6qcyupo+/cBMIeUwVXHqXbbxI83MJj7G85QxDE7tXx+vVwfbJZ5HEGy+1z1P Ea2MjLfYk7Lx3+8rxGP0ON2PQXuGWmS3lOVWyTc+/HU7X08nOOPBfCrgEjwWfQEl7npo 8UpzBln/NKQR5jiMdJYdo6l6lENF7fmwbDdeacjf3gevPMIMutWiLN5pTyZtRRMOYdc1 1CJkmoGSLK6pS6iC06NQH91sw6TjWpXVz9aOfJ6/wWlZDPcCL+FAr8RVgpx9eHsJtm93 L5D6QNygJMAKnzoB5R1BMSAfh8Kof7nnvJ1Rj2OG1SknXLXaKPNpXIsQq3HS1MaiDPOl YAZg== X-Gm-Message-State: ALyK8tLcCiNvg6tvxPknOn0A/whFmQWZKCIKr/iBIHx2y3/gzKxlR8DHd5wW0ybEwhX+xoF6U+75kcUvAoCF8g== X-Received: by 10.36.117.79 with SMTP id y76mr86060786itc.35.1469548978954; Tue, 26 Jul 2016 09:02:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Tue, 26 Jul 2016 09:02:58 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Tue, 26 Jul 2016 17:02:58 +0100 Message-ID: Subject: Re: PATCH: Encoding issue with qtLiteral function (pgAdmin4) To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org On Tue, Jul 26, 2016 at 3:06 PM, Dave Page wrote: > Hi > > On Tue, Jul 26, 2016 at 2:34 PM, Murtuza Zabuawala > wrote: >> Hi Dave, >> >> PFA updated patch to fix encoding issue, I have tested in Python2/3 and >> looks like working in both environment. >> >> Almost all nodes are affected with this change, I tried to test & cover = all >> basic operations on nodes but still it requires some testing. >> >> This patch will cover below tickets, >> RM#1307 >> RM#1479 > > I've committed this as-is, as it fixes things nicely as far as I can > see... with one exception: I couldn't create Functions with utf-8 > names. Can you fix that please? I spoke too soon - Types don't play nicely either - try creating the following in the UI. CREATE TYPE public."=F0=9F=8D=BA" AS ENUM ('a', 'b'); ALTER TYPE public."=F0=9F=8D=BA" OWNER TO postgres; Isn't there a way we can force everything to UTF-8 without having to modify individual nodes? That's what we did in pgAdmin 3, then never worried about the problem again. --=20 Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers