Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0BA879FC562 for ; Fri, 19 Oct 2007 21:25:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97314-10 for ; Fri, 19 Oct 2007 21:25:13 -0300 (ADT) X-Greylist: delayed 00:06:34.514056 by SQLgrey-1.7.5 Received: from hogranch.com (hogranch.com [66.117.128.240]) by postgresql.org (Postfix) with ESMTP id 6FB5B9FA293 for ; Fri, 19 Oct 2007 21:25:12 -0300 (ADT) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id l9K0IGa06996; Fri, 19 Oct 2007 17:18:16 -0700 Message-ID: <47194948.7070603@hogranch.com> Date: Fri, 19 Oct 2007 17:18:16 -0700 From: John R Pierce User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Joao.Pires@iscte.pt CC: pgsql-jdbc@postgresql.org Subject: Re: PostgreSQL JDBC Driver versus Encoding References: <004301c812a1$7a8ee980$dc4c0a0a@ci.iscte.intranet> In-Reply-To: <004301c812a1$7a8ee980$dc4c0a0a@ci.iscte.intranet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/118 X-Sequence-Number: 17690 Jo=E3o Paulo Pires wrote: > > Hello, > > =20 > > I have a PostgreSQL database which encoding is SQL_ASCII. > > I inserted information into that database from a MySQL database, using = > Java code, which encoding is UTF-8, and the information in the=20 > destination database has some strange characters related with encoding = > problems. > > =20 > > There is any additional parameter that we can consider in the=20 > PostrgreSQL connection string to deal with those problems? > > The problem should be related with the encoding used to connect to=20 > MySQL database? > > =20 > you can't encode all symbols in UTF-8 with simple ASCII. Symbols that=20 are the same will translate but ASCII only has 200 or so glyphs. you'll = need to convert the database to UTF-8, then redo your inserts.