How to convert escaped text column - force E prefix - Mailing list pgsql-general

From Durumdara
Subject How to convert escaped text column - force E prefix
Date
Msg-id CAEcMXhkfup6xm9ipbFybwquhMkgLEt4G_3Ypv7_HiLnpz0mZUg@mail.gmail.com
Whole thread Raw
Responses Re: How to convert escaped text column - force E prefix  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
Dear Members!

A web developer stores JSON like strings in a text column.

With E prefix we can get the real text:

Select E'Az ad\u00f3kulcsonk\u00e9nti' 

Hungarian: "Az adókulcsonkénti" (ISO-8859-2)

How to get the same result from a table column?

select WhatAFunction( ATable.JSONLikeTextColumn) from ATable

What function do we need to use to "simulate" E prefix?

Thank you for the help!

Best regards
dd







pgsql-general by date:

Previous
From: Paul Förster
Date:
Subject: LDAP(s) doc misleading
Next
From: Artur Zakirov
Date:
Subject: Re: FTS and tri-grams