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 C68438BA519 for ; Sat, 19 Feb 2005 08:22:07 +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 76830-09 for ; Sat, 19 Feb 2005 08:21:56 +0000 (GMT) Received: from smtp10.kymp.net (smtp10.kymp.net [80.248.96.136]) by svr1.postgresql.org (Postfix) with ESMTP id 96D298B9EE5 for ; Sat, 19 Feb 2005 08:21:55 +0000 (GMT) Received: from [192.168.16.100] (static-241-66.kymp.net [213.130.241.66]) by smtp10.kymp.net (8.13.3/8.13.3) with SMTP id j1J8LqPE021710; Sat, 19 Feb 2005 10:21:53 +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: Sat, 19 Feb 2005 10:21:51 +0200 User-Agent: KMail/1.6.2 References: <000201c515f9$9d61cec0$797ba8c0@jfradkin> In-Reply-To: <000201c515f9$9d61cec0$797ba8c0@jfradkin> Cc: pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200502191021.51224.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/218 X-Sequence-Number: 20329 Hi, Glad I could help. I am no expert on this stuff either, but after some experiment LATIN1 is wh= at=20 I ended up using. Works with Scandinavian and German umlauts too and even=20 with russian characters. I create my dbs manually via terminal and clients= =20 access them with browser interface through internet. We are using RH, FC2 a= nd=20 TSL (Trustix Secure Linux) as servers. BR, Aarni On Friday 18 February 2005 22:37, you wrote: > Looking deeper into the matter (which I admit I am a bit ignorant on) I > think you hit the nail on the head. > Coming from MSSQL which is using Latin I may have to use Latin1. > It works ok as SQL_ASCHII, but lower does not work, so hopefully using > LATIN1 I can store the chars and also get lower to work etc. > > Thanks so much for the help. > > I have been very confused as I could create a Unicode db and even save the > French values using pgadmin or .net connection, but the odbc would not > work. I hope it works ok with the LATIN1. > > > -----Original Message----- > From: Aarni Ruuhim=E4ki [mailto:aarni@kymi.com] > Sent: Friday, February 18, 2005 10:25 AM > To: Joel Fradkin > Cc: pgsql-sql@postgresql.org > Subject: Re: [SQL] trrouble inserting stuff like =E9 > > Hi, > > I use LATIN1 encoding and it works fine with accented characters. So try > creating your db with -E LATIN1 switch. Or even initdb -E LATIN1 if you > wan't > 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 > > import > > > on a Unicode database. > > Now I get all kinds of errors from the .net program (which I have write > > out > > > 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 > > -------------- > This is a bugfree broadcast to you > from **Kmail** > on **Fedora Core 2** linux system > -------------- =2E