Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJrLM-0005Rq-Gc for pgsql-general@arkaria.postgresql.org; Wed, 10 Mar 2021 05:25:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJrLK-00007p-Gp for pgsql-general@arkaria.postgresql.org; Wed, 10 Mar 2021 05:25:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJrLJ-00007h-3N for pgsql-general@lists.postgresql.org; Wed, 10 Mar 2021 05:25:09 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJrLE-0007pg-8u for pgsql-general@postgresql.org; Wed, 10 Mar 2021 05:25:07 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id D934315DF; Wed, 10 Mar 2021 00:25:01 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 10 Mar 2021 00:25:02 -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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=qIcmQAWFjsq+VgPxvwj4YC+mrNsU8Qko+dVjYAz9DXs=; b=Pwdx9dP4 bfba4i52fPRmhgZowZuHVHREl4QoynSGu5tq2Uoqo6v58p10jEsQ2Pe1NmGQR6/+ ME1GuFPrSHbHVYgrCwm/qMJSfJoc61mx71qSHu5lUCyJP1VbiMxTOsVKKeoSfPNW iMD0zWTxxPp0+5AIMOR3xyWa5LVcJLLsgPBM0D9lImx9xIjekvklBhvXLKmwRnir CRqdjcWop/bBs3KPUygMBM9JE3NpKUyxKquw8z6OrA14Q/uf1r9eVRzDtdr7jPWS 8CeZoXEvCXMe6Q3yOBDXrYYuzgspWLg1iO2PuBEV7079LxU4RfGh9Jf7noZUyY5T EGaixM16xn6jEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddujedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugfgjggfsehtke ertddtredunecuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhr vgesrghlvhhhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeeufffhjeeiue euffegvddukeegledtveeivdeiueefieeivefgteehueefteehvdenucfkphepudeltddr leehrdduledrleehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.95]) by mail.messagingengine.com (Postfix) with ESMTPA id 916E724005B; Wed, 10 Mar 2021 00:25:00 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 207612A08A7; Wed, 10 Mar 2021 02:24:57 -0300 (-03) Date: Wed, 10 Mar 2021 02:24:57 -0300 From: Alvaro Herrera To: Vincent Veyron Cc: pgsql-general , Tom Lane Subject: Re: unexpected character used as group separator by to_char Message-ID: <20210310052457.GA10997@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210310000345.2244070de113915b39ae2fca@wanadoo.fr> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Mar-10, Vincent Veyron wrote: > On Tue, 09 Mar 2021 16:22:07 -0500 > Tom Lane wrote: > > (I suppose you could also use regexp_replace to convert random forms > > of whitespace to plain ASCII space.) > > No dice. 'G' formatting looks like a whitespace, but is different (it > appears to be slightly narrower when displayed in html, too) : That space (0xe280af) is U+202F, which appears to be used for French and Mongolian languages (exclusively?). It is quite possible that in the future some other language will end up using some different whitespace character, possibly breaking any code you write today -- the use of U+202F appears to be quite recent. Maybe it'd be better to have the query return two fields: one destined for printing, the other you can use to feed the database back. -- Álvaro Herrera Valdivia, Chile "Porque Kim no hacía nada, pero, eso sí, con extraordinario éxito" ("Kim", Kipling)