X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6685C8BA464 for ; Fri, 18 Feb 2005 15:27:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40638-08 for ; Fri, 18 Feb 2005 15:27:50 +0000 (GMT) Received: from smtp20.kymp.net (smtp20.kymp.net [80.248.96.137]) by svr1.postgresql.org (Postfix) with ESMTP id AC7A98BA2DC for ; Fri, 18 Feb 2005 15:27:52 +0000 (GMT) Received: from [192.168.16.100] (static-241-66.kymp.net [213.130.241.66]) by smtp20.kymp.net (8.13.3/8.13.3) with SMTP id j1IFRo2T007835; Fri, 18 Feb 2005 17:27:51 +0200 From: Aarni =?iso-8859-1?q?Ruuhim=E4ki?= Reply-To: aarni@kymi.com Organization: KYMI.com To: "Joel Fradkin" Subject: Re: trrouble inserting stuff like =?iso-8859-1?q?=E9?= Date: Fri, 18 Feb 2005 17:25:07 +0200 User-Agent: KMail/1.6.2 References: <000001c515ca$7146a740$797ba8c0@jfradkin> In-Reply-To: <000001c515ca$7146a740$797ba8c0@jfradkin> Cc: MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200502181725.07379.aarni@kymi.com> X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/208 X-Sequence-Number: 20319 Hi, I use LATIN1 encoding and it works fine with accented characters. So try=20 creating your db with -E LATIN1 switch. Or even initdb -E LATIN1 if you wan= 't=20 your dbs default to that. Best regards, Aarni On Friday 18 February 2005 16:59, you wrote: > I wrote a program to read my database (from MSSQL) and write it to > Postgres. It appeared to work great the first time I ran it, but the > database was SQL_ASCII (It defaulted to this when I created it from the > command line on the linux box using createdb. > > When I tried to restore it I used PGAdmin on my XP machine which created a > Unicode database. > I was unable to restore the SQL_ASCII to the Unicode, so I re-ran my impo= rt > on a Unicode database. > Now I get all kinds of errors from the .net program (which I have write o= ut > the actual SQL on each error). > When I cut and paste the SQL into PGADMIN it runs ok, so it only gives an > error using .net ODBC. > > Any one have any clues for me to follow? > > Here is an example of a SQL line that did not run in .net. > > insert into > tblSuspectedActivity(ClientNum,ID,Value,IsDeleted,PresentationID) > values('FREN',4,'Paiement =E0 > account',False,2) > > Joel Fradkin > =A0 > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly =2D------------- This is a bugfree broadcast to you from **Kmail** on **Fedora Core 2** linux system =2D-------------