Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3wno-0002Nj-9N for pgsql-jdbc@arkaria.postgresql.org; Fri, 08 Feb 2013 22:52:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3wnn-0007WI-Ak for pgsql-jdbc@arkaria.postgresql.org; Fri, 08 Feb 2013 22:52:15 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3wnm-0007WD-My for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 22:52:14 +0000 Received: from nm25-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.156]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3wnk-0001D6-PI for pgsql-jdbc@postgresql.org; Fri, 08 Feb 2013 22:52:13 +0000 Received: from [98.139.212.149] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2013 22:52:12 -0000 Received: from [98.139.212.248] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 08 Feb 2013 22:52:12 -0000 Received: from [127.0.0.1] by omp1057.mail.bf1.yahoo.com with NNFMP; 08 Feb 2013 22:52:12 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 22255.72573.bm@omp1057.mail.bf1.yahoo.com Received: (qmail 87164 invoked by uid 60001); 8 Feb 2013 22:52:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1360363931; bh=xjXqWMX75tvpDmryVa4U7yHJSvC0+hMv1j7g/uERKnY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jQHrtfDElBOtBh5wr3RFvayPHqIoVlhgPapVLEhACUSBlOGei9vw4F4cDCBA/HGn5LiCw6+xHCU2es/FTyJFpkEvs5EeRcaI8/PFjyBeDPTEAvfiyiwzSQveBvMltbg6At6MjcGeKEnH9OrhW4jibb2phsAt/joDdkv1ySd87iw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=S8eiWnx1dxhvXgzOTUKdPrYEl7NKdMQ189VvaZQkkv0t9S6pCcTzaBMiYPAING95VM9JEintvf0Iwa/KnjvMElTSs9Rnvm/SWpkZvEJ6OWP61GyNsfSfDvQybwlcLQYPuhVlXTbqu5RiR8BFeMdjnm3vF6hpqXdrIDN+lfA/Nzs=; X-YMail-OSG: Yf4nxkgVM1lhFy4dDOXJFY4U8TrMNOVDmKmW2gf6ltEgfEl 11FnZX_8KDXZTzxW5o9mYxOf5Xr7SqrN2gcVApRxk0UYJAHCo4u.4IAxSpvU ndaS91BngUS5dPZpTrJUIYycHUD1p.r5afrkeJdqLfX0jEfqp.mGL8rvs7oW RhBvqm0kBT2NANHMY9RNT_T4LUBvfm3xOArPOh2DePJ_Hrr2y0LKsc0xkR.o P1s9tlFTjzJgp2n2FAzAElWJIZJE8ZOTGRTtYr.sipQS0Z_cUqZALtfpYnoU pZHuhIbdLOYkcQxt8gI8nFC9lTXDEWO5qDwtwLokHIemhUjyG6ICfAGluVbo fVLuXYzWV9jrlmV1CgC5KAejUWfZWaCr9qaFH11r6uCAfRHWtCke2BSFHObF wBi161q3bOru0g6KRXC21NUgt3_PpjM_nAfM9lkhfQuEd3lMVxpT29.hA8GP T9VC6ch.Fx0QXjAH7GU0- Received: from [76.255.19.161] by web162903.mail.bf1.yahoo.com via HTTP; Fri, 08 Feb 2013 14:52:11 PST X-Rocket-MIMEInfo: 001.001, TGF1cmVudCBTY2h3ZWl6ZXIgPGxhdXJlbnQuc2Nod2VpemVyQHBlb3BsZWZvbmUuY29tPiB3cm90ZToKCj4gSSBoYXZlIGFuIGlzc3VlIHdpdGggc3BlY2lhbCBjaGFyYWN0ZXIgbGlrZSDDqS4KCj4gSSBoYXZlIGFzIHNlcnZlciBwb3N0Z3JlcyA5LjIsIEkgaGF2ZSBjcmVhdGVkIGEgbmV3IERCICwgZW5jb2RpbmcKPiB1dGY4IMKgCj4gCj4gQ2xpZW50IGlzIGEgdmVyeSBzaW1wbGUgdGVzdCBjbGFzcyB0aGF0Ogo.IDEpwqDCoMKgwqDCoCB1cGRhdGXCoCBhIHZhcmNoYXIgdmFsdWUKPiAyKcKgwqDCoMKgwqABMAEBAQE- X-Mailer: YahooMailWebService/0.8.132.503 References: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com> Message-ID: <1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com> Date: Fri, 8 Feb 2013 14:52:11 -0800 (PST) From: Kevin Grittner Reply-To: Kevin Grittner Subject: =?utf-8?B?UmU6IFtKREJDXSDDqSBjb252ZXJ0ZWQgaW4gw4PCqSA=?= To: Laurent Schweizer , "pgsql-jdbc@postgresql.org" In-Reply-To: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 Laurent Schweizer wrote: > I have an issue with special character like =C3=A9. > I have as server postgres 9.2, I have created a new DB , encoding > utf8 =C2=A0 >=20 > Client is a very simple test class that: > 1)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 update=C2=A0 a varchar value > 2)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 read the same value and print them >=20 > If I update the varchar with a special character like =E2=80=9C=C3=A9=E2= =80=9D=C2=A0 the > value in the DB is correct ( I check them with another software ) > but when I read them from my simple java class=C2=A0 the value is not > correct and the =C3=A9 is converted in =C3=83=C2=A9 >=20 > I have added to the connection string the option: > ?useUnicode=3Dtrue&characterEncoding=3Dutf8 >=20 > And if I do a : "SHOW client_encoding;=E2=80=9D I get=C2=A0 UTF8 It is behaving as though the client is using a character encoding other than UTF8 -- some sort of 8-bit encoding, probably.=C2=A0 You must set client_encoding to match. -Kevin --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc