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 D68FB8B9E7C for ; Tue, 22 Feb 2005 14:30:44 +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 80847-02 for ; Tue, 22 Feb 2005 14:30:37 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by svr1.postgresql.org (Postfix) with ESMTP id B1F3E8B9E68 for ; Tue, 22 Feb 2005 14:30:39 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ICB002DCHN31K40@vms044.mailsrvcs.net> for pgsql-sql@postgresql.org; Tue, 22 Feb 2005 08:30:39 -0600 (CST) Date: Tue, 22 Feb 2005 09:34:33 -0500 From: "Joel Fradkin" Subject: Re: problem inserting local characters ... In-reply-to: <421B3650.2020203@logi-track.com> To: "'Markus Schaber'" , "'Garry'" Cc: Message-id: <000801c518eb$a1460930$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.156 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200502/242 X-Sequence-Number: 20353 I had a similar problem myself and found if I used SQL_ASCHII for the = data base I could insert my data. I understand however that it basically means the database does not know anything about encoding and therefore stuff like upper does not work on = the extended chars. I ended up changing to sql_aschii so both my inserts and backup and = restore work, realizing I am giving up some functionality. 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: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Markus Schaber Sent: Tuesday, February 22, 2005 8:41 AM To: Garry Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] problem inserting local characters ... Hi, Garry, Garry schrieb: > Trying to do this insert, I get an error on both the values > "TelefonGesch=E4ft" and "Firmenstra=DFe": >=20 > FEHLER: ung=C3=BCltige Byte-Sequenz f=C3=BCr Kodierung = =C2=BBUNICODE=C2=AB: 0xe165 This sounds as your database was created in unicode (utf-8). > (the 0xe165 differs between the two; the fields in question are = regular > type "text" fields) >=20 > Looks like I'm having some trouble with unicode encoding ... The > characters I have are regular 8bit ASCII chars ... How can I fix this? No, 8bit ASCII does not exist. ASCII always is 7 bit. As your error message is in German, I suspect your data is encoded in LATIN1 or LATIN9 (their only difference is the EUR symbol in the latter one). Can you try to add the following command before your insert statements: set client_encoding to latin1; HTH, Markus --=20 markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z=FCrich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios@logi-track.com | www.logi-track.com