agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Ivo Rossacher <rossacher@bluewin.ch>
To: pgsql-admin@postgresql.org
Subject: Re: ERROR:  invalid byte sequence for encoding "UTF8": 0x92
Date: Tue, 20 Mar 2007 21:03:12 +0100
Message-ID: <200703202103.12280.rossacher@bluewin.ch> (raw)
In-Reply-To: <BAY131-F9EB3EF541699B62FB5952B0750@phx.gbl>
References: <BAY131-F9EB3EF541699B62FB5952B0750@phx.gbl>

Am Dienstag, 20. März 2007 20:34 schrieb Karthikeyan Sundaram:
> Hi,
>
>    I am using postgres 8.2.3.  I have recently converted my database from
> sql-ascii to UTF8.  I have a portal which calls a perl program to insert
> the data into the database.
>
>     While inserting, I am getting an error message
>
> DBD::Pg::st execute failed: ERROR:  invalid byte sequence for encoding
> "UTF8": 0x92
> [for Statement "INSERT INTO longdescs (bug_id, who, bug_when, thetext,
> isprivate)
>
>
> How can I set the client encoding in perl. Can somebody help me?
>
> Regards
> skarthi

After the connection is done send set client_encoding  to '<Encoding Perl is 
using>' to the server. The server then will convert the strings back and 
forward for you.
Se manual chapter 21.2 Character Set Support for more details.

Best regards
Ivo
>
> _________________________________________________________________
> Get a FREE Web site, company branded e-mail and more from Microsoft Office
> Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: You can help support the PostgreSQL project by donating at
>
>                 http://www.postgresql.org/about/donate



view thread (7+ messages)  latest in thread

Message-ID: <200703202103.12280.rossacher@bluewin.ch>
Permalink:  ../200703202103.12280.rossacher@bluewin.ch/
Also on:    postgresql.org/message-id/200703202103.12280.rossacher@bluewin.ch

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: rossacher@bluewin.ch, pgsql-admin@postgresql.org
  Subject: Re: ERROR:  invalid byte sequence for encoding "UTF8": 0x92
  In-Reply-To: <200703202103.12280.rossacher@bluewin.ch>

* 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