From: Lucas Sultanum <lucas.sultanum@gcf.com.br>
To: pgsql-bugs@postgresql.org
Subject: Bug
Date: Wed, 27 Oct 2004 17:27:20 -0300
Message-ID: <001e01c4bc63$5c5476c0$0101a8c0@gcfsistemas> (raw)
Hello,
I am not sure if this is a bug or I am doing something wrong. When I execute the following command (insert into a_cadclias values ('6542','65465','amaro','ámaro')) on pgAdmin III Query it works pretty well, but when I try to do the same through a C# App connecting to the database through an ODBC driver I get the following error:
"ERROR: 22021: invalid byte sequence for encoding \"UNICODE\": 0xe16d61"
I know that it has something to do with the word ámaro because when I take the letter á off and replace it with the letter a it works fine.
Bellow goes the table structure:
CREATE TABLE a_cadclias
(
dba_clias_cliente "numeric"(8) NOT NULL,
dba_clias_associado "numeric"(8) NOT NULL,
dba_keyclias_sq "varchar"(8) NOT NULL,
teste "varchar"(10),
CONSTRAINT dba_keyclias_sq PRIMARY KEY (dba_keyclias_sq)
)
WITH OIDS;
Att: It is valid to said that I have also tried the Npgsql dll and got the same error.
Regards
Lucas Sultanum
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.269 / Virus Database: 264.12.4 - Release Date: 27/10/2004
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: lucas.sultanum@gcf.com.br
Subject: Re: Bug
In-Reply-To: <001e01c4bc63$5c5476c0$0101a8c0@gcfsistemas>
References: <001e01c4bc63$5c5476c0$0101a8c0@gcfsistemas>
* 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