Entering a character code in a query - Mailing list pgsql-general

From John Gage
Subject Entering a character code in a query
Date
Msg-id BAB4EE58-D8D3-4CF8-9524-F80B76DDE521@numericable.fr
Whole thread Raw
Responses Re: Entering a character code in a query  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-general
I would like to use the following query:

SELECT english || '\n' || english || '\x2028' || french AS output FROM vocab_words_translated;

where \x2028 is the hexadecimal code for a soft carriage return.

However, this does not work.

Can anyone help with this problem?

Thanking you,

John

Pertinent codes:

2028 LINE SEPARATOR * may be used to represent this semantic unambiguously
U+2028, character 
‬, decimal 8232, hex 0x2028, octal \20050, binary 10000000101000UTF-8: 0xe2 0x80 0xa8 

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: obsessive-compulsive vacuum behavior
Next
From: Brad Nicholson
Date:
Subject: 8.3.10 Changes