Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3ud0-0005Hv-6G for pgsql-jdbc@arkaria.postgresql.org; Fri, 08 Feb 2013 20:32:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3ucz-00035c-Lz for pgsql-jdbc@arkaria.postgresql.org; Fri, 08 Feb 2013 20:32:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3ucy-00034k-Fp for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 20:32:56 +0000 Received: from mxout001.mail.hostpoint.ch ([2a00:d70:0:e::321]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3ucw-0005rs-Cf for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 20:32:56 +0000 Received: from [10.0.2.10] (helo=asmtp001.mail.hostpoint.ch) by mxout001.mail.hostpoint.ch with esmtp (Exim 4.72 (FreeBSD)) (envelope-from ) id 1U3ucv-000Bdw-FT for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 21:32:53 +0100 Received: from [46.14.122.181] (helo=laurentTHINK) by asmtp001.mail.hostpoint.ch with esmtpa (Exim 4.72 (FreeBSD)) (envelope-from ) id 1U3ucu-000Aip-Mz for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 21:32:53 +0100 X-Authenticated-Sender-Id: laurent.schweizer@peoplefone.com From: "Laurent Schweizer" To: Subject: =?iso-8859-1?Q?=E9_converted_in_=C3=A9_?= Date: Fri, 8 Feb 2013 21:32:58 +0100 Message-ID: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002E_01CE0643.DDA64540" X-Mailer: Microsoft Outlook 14.0 Content-Language: fr-ch Thread-Index: Ac4GOr2WoNfda3e0TWuJF9NUzQkltQ== X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org This is a multipart message in MIME format. ------=_NextPart_000_002E_01CE0643.DDA64540 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear all, =20 I have an issue with special character like =E9. =20 I have as server postgres 9.2, I have created a new DB , encoding utf8 =20 =20 Client is a very simple test class that: 1) update a varchar value=20 2) read the same value and print them =20 If I update the varchar with a special character like =93=E9=94 the = value in the DB is correct ( I check them with another software ) but when I read = them from my simple java class the value is not correct and the =E9 is = converted in =C3=A9 =20 I have added to the connection string the option: ?useUnicode=3Dtrue&characterEncoding=3Dutf8 =20 And if I do a : "SHOW client_encoding;=94 I get UTF8 =20 I check on the network side and the =E9 is correctly encoded in UTF-8 =20 Any idea why the =E9 is converted in =C3=A9 ? =20 I use the last version of the JDBC driver. =20 Thanks and regards =20 Laurent ------=_NextPart_000_002E_01CE0643.DDA64540 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Dear all,

 

I have an issue with special character like = =E9.

 

I have as server postgres 9.2, I have created a new DB , = encoding utf8 =A0

 

Client is a very simple test class = that:

1)      = update=A0 a varchar = value

2)      = read the same value = and print them

 

If I update the varchar with a special character like = “=E9”=A0 the value in the DB is correct ( I check them with = another software ) but when I read them from my simple java class=A0 the = value is not correct and the =E9 is converted in = =C3=A9

 

I have added to the connection string the option: = ?useUnicode= =3Dtrue&characterEncoding=3Dutf8

 

And if I do a = : "SHOW = client_encoding;” I get = =A0UTF8

 =

I check on the = network side and the =E9 is correctly encoded in = UTF-8

 =

Any idea why the =E9 is converted in =C3=A9 ?

 

I use the last version of the JDBC = driver.

 

Thanks and regards

 

Laurent

------=_NextPart_000_002E_01CE0643.DDA64540--