pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: kumar <sgnerd@yahoo.com.sg>
Cc: pgsql-sql@postgresql.org
Subject: Re: Customised Encoding
Date: Tue, 27 Apr 2004 14:16:16 +0100
Message-ID: <200404271416.16156.dev@archonet.com> (raw)
In-Reply-To: <020c01c42c56$ec39b130$7502a8c0@hdsc.com>
References: <00f501c42c24$7c16f2a0$7502a8c0@hdsc.com>
	<200404271309.55818.dev@archonet.com>
	<020c01c42c56$ec39b130$7502a8c0@hdsc.com>

On Tuesday 27 April 2004 13:55, kumar wrote:
> Hi Richar,

Kumar - try to make sure you reply to the list.

> It didnt work for me.
>
> select encode('65536'::bytea,'UTF-8')
> ERROR:  Cannot cast type integer to bytea
>
> select encode('65536'::bytea,'UTF-8')
> ERROR:  No such encoding as 'UTF-8'

I think you're using the encode() function wrongly. The second parameter is 
supposed to be something like "base64" or "hex". I'm not sure it makes sense 
to try and cast an integer to a bytea either.

Can you say what you're trying to achieve here?

-- 
  Richard Huxton
  Archonet Ltd



view thread (4+ messages)  latest in thread

Message-ID: <200404271416.16156.dev@archonet.com>
Permalink:  ../200404271416.16156.dev@archonet.com/
Also on:    postgresql.org/message-id/200404271416.16156.dev@archonet.com

 · 

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: dev@archonet.com, sgnerd@yahoo.com.sg
  Subject: Re: Customised Encoding
  In-Reply-To: <200404271416.16156.dev@archonet.com>

* 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