Re: psql encoding problem

From: "Joel Fradkin" <jfradkin(at)wazagua(dot)com>
To: <mailreg(at)numerixtechnology(dot)de>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: psql encoding problem
Date: 2005-03-02 13:51:18
Message-ID: 000601c51f2e$e9cf49c0$797ba8c0@jfradkin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I had the same issue using odbc, but .net you can use encodeing = unicode,
so not sure what you are using to do the connection.
Since I am using ODBC with my ASP I had to switch from Unicode to SQL_ASCHII
for my data base.
In effect it tells the database you don’t know about the encoding and makes
some of the routines like upper not work properly on extended chars.

Joel Fradkin

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305

jfradkin(at)wazagua(dot)com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
© 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.

-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org]
On Behalf Of T E Schmitz
Sent: Monday, February 28, 2005 3:48 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] psql encoding problem

Hello,

I am trying to insert the following record:

INSERT INTO item (name,retail_price) VALUES ('Cheese Soufflé',7.95,);

(I presume you see the accented character in *Soufflé*)

psql comes back with "invalid byte sequence for encoding "UNICODE": 0xe9"
If I do this via DbVisualizer, the record is inserted fine.

Is there any way around this problem?

--

Regards/Gruß,

Tarlika Elisabeth Schmitz

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Eisentraut 2005-03-02 14:24:11 Re: Multiples schemas
Previous Message Richard Huxton 2005-03-02 12:06:18 Re: Postgres performance