public inbox for [email protected]
help / color / mirror / Atom feedFrom: ft <[email protected]>
To: [email protected]
Subject: decode/encode backslash to base64
Date: Sun, 24 Mar 2024 22:31:08 +0100
Message-ID: <[email protected]> (raw)
Hello,
here is an example for decode and encode
a string with backslash: 'a\'
select trim(convert_from(decode('YVw=', 'base64'), 'UTF8') )::text;
answer: 'a\'
the next query throw an error:
SQL Error [22P02]: ERROR: invalid input syntax for type bytea
select encode(trim(convert_from(decode('YVw=', 'base64'), 'UTF8')
)::text::bytea, 'base64' );
also:
select encode('a\'::text::bytea, 'base64');
What should I do?
Franz
view thread (3+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: decode/encode backslash to base64
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox