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 0D66D8B9F33 for ; Fri, 18 Feb 2005 16:11:23 +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 53678-08 for ; Fri, 18 Feb 2005 16:11:18 +0000 (GMT) Received: from vms042.mailsrvcs.net (unknown [206.46.252.42]) by svr1.postgresql.org (Postfix) with ESMTP id F32C38B9EBA for ; Fri, 18 Feb 2005 16:11:17 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IC400CDN7MRJQ20@vms042.mailsrvcs.net> for pgsql-sql@postgresql.org; Fri, 18 Feb 2005 10:11:16 -0600 (CST) Date: Fri, 18 Feb 2005 11:15:03 -0500 From: "Joel Fradkin" Subject: =?iso-8859-1?Q?RE:_=5BSQL=5D_trrouble_inserting_stuff_like_=E9?= In-reply-to: <200502181725.07379.aarni@kymi.com> To: Cc: Message-id: <000001c515d5$01adc570$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.191 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200502/209 X-Sequence-Number: 20320 I don=92t think it has anything to do with the data base as I can add = fine from pgadmin its an odbc question. How do I tell the connection to use Unicode? It worked ok using SQL_ASCHII also with the driver, but I thought if we = get a Chinese client down the road I couldn=92t store those chars unless its Unicode? Joel Fradkin =20 Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 =20 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. =A9 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. =20 =20 -----Original Message----- From: Aarni Ruuhim=E4ki [mailto:aarni@kymi.com]=20 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=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 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 --------------