Re: Hostnames, IDNs, Punycode and Unicode Case Folding - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Hostnames, IDNs, Punycode and Unicode Case Folding
Date
Msg-id 20141230000004.GB54847@crankycanuck.ca
Whole thread Raw
In response to Re: Hostnames, IDNs, Punycode and Unicode Case Folding  (Mike Cardwell <pgsql@lists.grepular.com>)
Responses Re: Hostnames, IDNs, Punycode and Unicode Case Folding  (Mike Cardwell <pgsql@lists.grepular.com>)
List pgsql-general
On Mon, Dec 29, 2014 at 11:50:54PM +0000, Mike Cardwell wrote:
>
> CREATE UNIQUE INDEX hostnames_hostname_key ON hostnames (lower(punycode_encode(hostname)));

This wouldn't work to get the original back if oyu have any IDNA2003
data, because puncode-encoding the UTF-8 under IDNA2003 and then
punycode-decoding it doesn't always result in the same label.  See my
other message.

Did I mention that IDNA is a mess?

A

--
Andrew Sullivan
ajs@crankycanuck.ca


pgsql-general by date:

Previous
From: David Johnston
Date:
Subject: Re: Rollback on include error in psql
Next
From: David G Johnston
Date:
Subject: Re: Hostnames, IDNs, Punycode and Unicode Case Folding