pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Laurent Schweizer <laurent.schweizer@peoplefone.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: [JDBC] é converted in é 
Date: Fri, 8 Feb 2013 14:52:11 -0800 (PST)
Message-ID: <1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com> (raw)
In-Reply-To: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com>
References: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Laurent Schweizer <laurent.schweizer@peoplefone.com> wrote:

> I have an issue with special character like é.

> I have as server postgres 9.2, I have created a new DB , encoding
> utf8  
> 
> Client is a very simple test class that:
> 1)      update  a varchar value
> 2)      read the same value and print them
> 
> If I update the varchar with a special character like “é”  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 é is converted in é
> 
> I have added to the connection string the option:
> ?useUnicode=true&characterEncoding=utf8
> 
> And if I do a : "SHOW client_encoding;” I get  UTF8

It is behaving as though the client is using a character encoding
other than UTF8 -- some sort of 8-bit encoding, probably.  You must
set client_encoding to match.

-Kevin


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (7+ messages)  latest in thread

Message-ID: <1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com>
Permalink:  ../1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kgrittn@ymail.com, laurent.schweizer@peoplefone.com
  Subject: Re: [JDBC] é converted in é
  In-Reply-To: <1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com>
  References: <002d01ce063b$7be0f2e0$73a2d8a0$@peoplefone.com> <1360363931.86012.YahooMailNeo@web162903.mail.bf1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox