From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Asif Rehman <asifr(dot)rehman(at)gmail(dot)com>, Daniel Gustafsson <daniel(at)yesql(dot)se>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: unescape_text function |
Date: | 2020-12-02 19:25:07 |
Message-ID: | 20201202192507.GB20285@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Dec 2, 2020 at 07:30:39PM +0100, Pavel Stehule wrote:
> postgres=# select
> 'Arabic : ' || unistr( '\0627\0644\0639\0631\0628\064A\0629' ) || '
> Chinese : ' || unistr( '\4E2D\6587' ) || '
> English : ' || unistr( 'English' ) || '
> French : ' || unistr( 'Fran\00E7ais' ) || '
> German : ' || unistr( 'Deutsch' ) || '
> Greek : ' || unistr( '\0395\03BB\03BB\03B7\03BD\03B9\03BA\03AC' ) || '
> Hebrew : ' || unistr( '\05E2\05D1\05E8\05D9\05EA' ) || '
> Japanese : ' || unistr( '\65E5\672C\8A9E' ) || '
> Korean : ' || unistr( '\D55C\AD6D\C5B4' ) || '
> Portuguese : ' || unistr( 'Portugu\00EAs' ) || '
> Russian : ' || unistr( '\0420\0443\0441\0441\043A\0438\0439' ) || '
> Spanish : ' || unistr( 'Espa\00F1ol' ) || '
> Thai : ' || unistr( '\0E44\0E17\0E22' )
> as unicode_test_string;
> ┌──────────────────────────┐
> │ unicode_test_string │
> ╞══════════════════════════╡
> │ Arabic : العربية ↵│
> │ Chinese : 中文 ↵│
> │ English : English ↵│
> │ French : Français ↵│
> │ German : Deutsch ↵│
> │ Greek : Ελληνικά ↵│
> │ Hebrew : עברית ↵│
> │ Japanese : 日本語 ↵│
> │ Korean : 한국어 ↵│
> │ Portuguese : Português↵│
> │ Russian : Русский ↵│
> │ Spanish : Español ↵│
> │ Thai : ไทย │
> └──────────────────────────┘
Offlist, this table output is super-cool!
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
From | Date | Subject | |
---|---|---|---|
Next Message | Dmitry Dolgov | 2020-12-02 19:34:15 | Re: [HACKERS] [PATCH] Generic type subscripting |
Previous Message | Justin Pryzby | 2020-12-02 19:20:10 | Re: [HACKERS] [PATCH] Generic type subscripting |