Unicode Data into a PostgreSQL DB?

S

Steve - DND

I'm currently having some difficulties inserting Unicode text into a
PostgreSQL database from a .Net app. The database is setup with UNICODE
encoding, and .Net apps maintains all strings in a Unicode format so I can't
figure out where the problem is. When I insert regular ASCII text,
everything is just fine. When I try to insert Unicode data, I get the error:
"Invalid UNICODE character sequence found".

However, when I use the exact same INSERT INTO statement in pgAdmin, that I
use in the .Net app, the data is inserted without a problem. I realize most
people here are working with SQL Server or Access, but hopefully someone has
some insight on this.

INSERT INTO dbo."trn_tblCultures" ("Culture", "LCID", "EnglishName",
"NativeName", "LanguageCodeTwoLetter", "LanguageCodeThreeLetter",
"WindowsCodeThreeLetter") VALUES
('ca',3,'Catalan','català','ca','cat','CAT');

Thanks,
Steve
 
?

=?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?=

Hello:
I'm currently having some difficulties inserting Unicode text into a
PostgreSQL database from a .Net app.

Can be of help if you tell which data provider are you using for access
PostgreSQL. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top