pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <barwick@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: Using psql to insert character codes
Date: Sat, 10 May 2003 19:35:55 +0200
Message-ID: <200305101935.56006.barwick@gmx.net> (raw)
In-Reply-To: <200305101620.24605.barwick@gmx.net>
References: <200305101620.24605.barwick@gmx.net>

On Saturday 10 May 2003 16:20, Ian Barwick wrote:
> Say using psql I wish to insert a character into a VARCHAR / TEXT /
> whatever column using the its hexadecimal representation in the relevant
> character set / encoding. E.g.: C3A4, which represents the character 'รค'
> (lower case a with umlaut) in UTF-8.
>
> I can do this:
> INSERT INTO my_tbl (unitxt) VALUE(encode(decode('c3a4','hex'), 'escape'))

correction:
INSERT INTO my_tbl (unitxt) VALUES(encode(decode('c3a4','hex'), 'escape'))

Ian Barwick
barwick@gmx.net




view thread (8+ messages)  latest in thread

Message-ID: <200305101935.56006.barwick@gmx.net>
Permalink:  ../200305101935.56006.barwick@gmx.net/
Also on:    postgresql.org/message-id/200305101935.56006.barwick@gmx.net

 · 

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: pgsql-sql@postgresql.org
  Cc: barwick@gmx.net
  Subject: Re: Using psql to insert character codes
  In-Reply-To: <200305101935.56006.barwick@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox